IonicaBizau / scrape-it

🔮 A Node.js scraper for humans.

Home Page:http://ionicabizau.net/blog/30-how-to-write-a-web-scraper-in-node-js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simulate click

Stas-Buzunko opened this issue · comments

commented

Thanks for a great lib!

I've had a look at #7 but still not sure whether it's possible to simulate a click.

A simple case is where you have to click on a button/link to see a hidden Phone number

Is it possible with your library? If so, can you show an example

If you want to simulate user behavior, use a headless browser (such as Nightmare, Google Chorome, PhantomJS) and there you simulate clicks and wait, and then pass the HTML code to scrapeIt.scrapeHTML.

commented

thanks