javascriptphpjqueryweb-scraping

Is it possible to run jQuery on server side?


I am working on web page scraping has AJAX pagination's implemented, Since website is developed in asp i.e. page with extension .aspx I have tried submitting pagination forms to get data from other pages than first page but did not get any success, take a look here code I have used Scraping data from all asp.net pages with AJAX pagination implemented, So my question is how can I click on pagination links from php i.e. is it possible to run jQuery or javascript on server side?

I know Node.js can be used to run javascript on server side, but don't know how to use it with Apache and PHP


Solution

  • JavaScript can, in fact, be run on the server side.

    node.js

    Your solution here, though, would be to use AJAX to call a PHP script for pagination, as server side javascript doesn't make much sense for the issue.