问题
So I know that was a mouthful, so to expand a bit I'm hoping to get text data from an Android app. I've read a little that I would need an Android emulator on my PC to do so. But I have no idea how to use Watir (the current web scraper I've been using successfully) to scrape data from an emulator.
回答1:
What you need to use to interact with a native mobile application is Appium. There is a Ruby binding for Appium that you can use. There is currently not a Watir API for Appium, though it is on our list of possible things we can work on at our hackathon in a few weeks. Keep a watch on our Watir blog to see if we end up able to implement something.
来源:https://stackoverflow.com/questions/46006037/is-it-possible-to-web-scrape-an-android-app-through-an-emulator-on-pc-using-wat