7

I need to build a cross-platform app (IOS + Android) that requires some web scraping capabilities.
What I need it to do is to login on certain sites, grab the relevant information and present a combined overview of data from these sites.

So is there any way to accomplish web scraping in phonegap?

1
  • same question bro....!!
    – Miru
    Oct 23, 2014 at 19:50

1 Answer 1

1

It's easy, just use Ajax to request a page.

Use something like JQuery to make the Ajax easier to work with.

Use JavaScript's regular expressions to extract what you want from the Ajax response. You could also use a Dom parser library of some sort as well for more direct access.

Make sure you have your PhoneGap config set up correctly for making Ajax requests. See AJAX Request from Phonegap Android fails

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.