ruipgil / scraperjs

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

Receiving 'cannot read error property of null' when using the dynamic scraper. #61

Closed Alanz2223 closed 8 years ago

Alanz2223 commented 8 years ago

I have the basic dynamic scraper setup and even tried to create a factory but the error persists. Its at line https://github.com/ruipgil/scraperjs/blob/master/src/DynamicScraper.js#L85 whenever that function is called the result argument is null so it throws an error. I am examining this through a debugger and it seems that the scraper is fetching the website properly so I am unsure what it is. I am using the https://github.com/ruipgil/scraperjs/blob/master/doc/examples/IMDBOpeningThisWeek.js example except the .scrape function is returning $('body');

using phantom version 1.9.0

Alanz2223 commented 8 years ago

READ https://github.com/ruipgil/scraperjs/issues/62