on-internet
← Community

Make a click event in NodeJS

Stack Overflow ·

I'm trying to make a click from server side. I'm using nodeJS and I'm not able to use JQuery function. I would make click on the .next class. This is what I would do : while (nbrPage > 0) { //my scraping code nbrPage--; $('.next').click(); } Note than the html code to scrape is like this : <span class="next"> <a id="nextPage-159c6fa8635" class="page" href="/blablabla"></a> </span> Does anyone know how to use JQuery methods in NodeJS code or how to make click function in NodeJS ? EDIT: I'm scraping a website and I want to loop on each pagination and scrap my data from each page. For this I need

Comments

Sign in or sign up to comment and upvote.

No comments yet.