IonicaBizau / scrape-it

🔮 A Node.js scraper for humans.
http://ionicabizau.net/blog/30-how-to-write-a-web-scraper-in-node-js
MIT License
4k stars 220 forks source link

Can I target a Dom or a String instead of a URL? #34

Closed sscarduzio closed 8 years ago

sscarduzio commented 8 years ago

I'm forced to use casperjs for logging in and render the JS of the site I'm scraping. That means I already have the Dom. How can I pass it to scrape-it directly?

IonicaBizau commented 8 years ago

@sscarduzio Of course, if you have some HTML as a string or cheerio object, you can pass it to the scrapeHTML method.

sscarduzio commented 8 years ago

Great news, thanks I will try :)

gencaysahinn commented 7 years ago

@sscarduzio Did you succeed it?