I saw a few ways to open an application using Python but none of them allow me to read the data from inside the application. Is this possible?
Asked
Active
Viewed 150 times
0

Has QUIT--Anony-Mousse
- 76,138
- 12
- 138
- 194

dungeon_master
- 191
- 1
- 1
- 8
-
I am looking for a module similar to selenium that allows me to interact with my application just like I would do with a web page. I have tried opening applications using subprocess but am not able to interact with them. – dungeon_master Sep 30 '15 at 00:54
-
If you're talking specifically about iTunes, you can copy the library with ctrl+A and paste it into a csv. Then you can use the `csv` module in Python to read the data in. – wpercy Sep 30 '15 at 01:46
-
I actually want to interact with applications through Python and extract the data using Python directly. – dungeon_master Sep 30 '15 at 02:16
-
Are you asking specifically for iTunes, or any general application? – Burhan Khalid Sep 30 '15 at 04:29
1 Answers
-1
Windows:
You can interact with programs with pywin32.
Also, check this out: Interact with other programs using Python
You can interact with programs in Python using COM automation.
Mac:
How can I interact with an application on mac through python subprocess?
-
This answer is specific to Windows. The question is tagged [tag:osx]. – tripleee Sep 30 '15 at 04:31
-
A link-only answer which links to other SO questions isn't really appropriate, either. Nominate as a duplicate for one of them (probably the second one) is my suggestion. – tripleee Sep 30 '15 at 04:58
-