0

Is there some external (or internal) script library to start an android app, to parse, to get the text displayed by the app and to perform clicks in order to build some kind of bot user?

user2409399
  • 257
  • 2
  • 16

1 Answers1

0

Yes, you can simulate touches, using ADB. See this question. From the link:

You can use the adb shell to run the command remotely:

adb shell input tap x y

If you want to get the text from the screen, you could get a screenshot from the device, (again using ADB). To get screenshot with ADB:

adb shell screencap -p /sdcard/screen.png
adb pull /sdcard/screen.png
adb shell rm /sdcard/screen.png

See here for source, and what to do if it doesn't work right.

Then you would need to send the screenshot through an OCR program to extract the text.

There is probably an easier way to do this, for example if there is a website for the app, you could just scrape the information from that.

Community
  • 1
  • 1
Jonas Czech
  • 12,018
  • 6
  • 44
  • 65