Webscraping with Phonegap

I need to build a cross-platform application (IOS + Android) that requires some web-cleaning capabilities.
I need him to log in to certain sites, capture relevant information and provide a general overview of the data from these sites.

So is there a way to do web scraping on the phone?

+6
source share
1 answer

It's simple, just use Ajax to request the page.

Use something like jQuery to make Ajax work easier.

Use JavaScript regular expressions to extract from an Ajax response. You can also use the Dom parser library, as well as for more direct access.

Make sure your PhoneGap configuration is configured correctly to create Ajax requests. See AJAX Request from Phonegap Android Phone

+1
source

Source: https://habr.com/ru/post/971051/


All Articles