ruipgil / scraperjs

A complete and versatile web scraper.
MIT License
3.7k stars 188 forks source link

Getting started? #55

Open MMRandy opened 8 years ago

MMRandy commented 8 years ago

Sorry, but not following how to simply run the express server and check the project out. How do you start the server and pass in a url to be scraped? I ran "grunt serve", and console reported that it was listening on localhost:3000, but the router does not seem to be catching anything. I'm missing something basic here...

ruipgil commented 8 years ago

You can test scraperjs by cloning the project and run grunt unit.

However, if you want to use this, just npm install scraperjs and start by the examples.

trevorhere commented 6 years ago

Is there a way to get around CORS using this package? I keep getting this error: Failed to load https://www.imdb.com/: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.