python - Automation Android apps with script - Stack Overflow
adb - Automate android using python - Stack Overflow
how do i approach making an automation system using python, desktop app and mobile ocr app through lan communication?
Automating Android Games with Python & Pytesseract: Sudoku
Hi Python,
Here's a demo video for the script: https://www.youtube.com/watch?v=fGY1nQzzGUc
Here's the Github Repository: https://github.com/haideralipunjabi/sudoku_automate
More on reddit.comI've been using Robinhood to invest and am trying to write an automated trading algorithm. Unfortunately, Robinhood is only on Android and doesn't have access to an API for automated trading.
I just had the idea that Android apps can probably be emulated on PC, right? So I'm looking for both:
1) An Android app emulator on PC (free is best but I'll pay for performance if it's necessary)
2) A Python library for automating Android apps on that emulator. I'm thinking Selenium, but for Android infrastructure.
Has anyone had any experience doing this before? Thank you so much!
Edit: Just wanted to clarify that I originally tried Quantopian because that seemed like the perfect solution. Unfortunately, my strategy is a timing strategy and Quantopian only allows the import of external data once a day via CSV.
Android studios emulator is pretty good nowadays, but very likely the best you could do is use Python to trigger touch events. You won't likely be able to interface directly with the app to do things like trades. Android is pretty good at not letting apps inject touch events and could cause security exceptions. Something as small as rext input would very likely entirely break any attempt to try to do an Android only solution. That being said, if the app exposes intents to do things like trading you could very easily use adb or an app to trigger them, but it seems unlikely that a stock trade app would expose those intents.
If you have access to the apk you could use Appium. I have had some decent success with that, it's a bit rough and unfinished for Python.
Or, you could look into adb documentation and write your own wrapper in Python. I haven't looked to see if someone had already done that.