Lurker News

Comments (228) 108 threads

Earlier comments
etatoby#
If you need to scrape content from complex JS apps (eg. React) where it doesn't pay to reverse engineer their backend API (or worse, it's encrypted/obfuscated) you may want to look at CasperJS.

It's a very easy to use frontend to PhantomJS. You can code your interactions in JS or CoffeeScript and scrape virtually anything with a few lines of code.
If you need crawling, just pair a CasperJS script with any spider library like the ones mentioned around here.

mrskitch1 reply#
I’d recommend puppeteer or some other Chrome driver. It’s fast and resilient even on single page apps.

If you’re looking to run it on a Linux machine also take a look at https://browserless.io (full disclosure I’m the creator of that site).

mrskitch#
I should note that this doesn't lock you into any particular lib, just solves the problem of running on Chrome in a service like fashion.

Load more comments