Hello All
I have a big challenged and I love to share it with you.
I want to automate web scraping. via Android application.
Well as all Know, we can do that via WebView and injectedJavaScript.
Well, once you want to work while the mobile is locked, Your app will go to Pause mode, and as long as web view is a UI thread. Android system will pause the activity. Moreover, You can not put a UI activity in a "service".
So, and after a long search, I came to the headless browser idea. PhantomJs and others do not support android. And suddenly I saw Chromium is supporting headless and there is an android version of that release.
So I have some questions.
1- Can I include Chromium headless browser within my APK?
2- Can we use the Chromium headless browser as a service in the Android application.
3- Let's say I get a cookie from the normal android WebView. Can I reuse it with this headless browser?
4- Is there any API to talk to the headless browser from the android service. Any HowTo will be appreciated
5- is there any DEMO opens source android studio project which shows how can we communicate with the headless browser.
I viewed:
but I found no documentation how can I call the API via Android JAVA code. if there is any sample will be a more suitable approach.
Thank you and best regards