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.
Comments (228) 108 threads
Earlier commentsIt'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.
That's what I'd use, if I had to scrape again (no JS support).
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).
All comments shown.
Couldn't load more comments. Check your connection and try again.