I want to use CURL to traverse and crawl a website, but all links to a website are redirected using js. Is there any way to crawl the website? What if ajax loads some page content? Its website link is similar to this: {code...} wants to traverse and crawl the website with CURL, but all the links to a website are redirected with js. Is there any way to crawl them? What if ajax loads some page content?
Its website links are similar to the following:
Script $ ('. link '). click (function () {var url = $ (this ). attr ('url'); $. get (url, function (data) {('{content'}.html (data) ;})}); script
Reply content:
I want to use CURL to traverse and crawl a website, but all links to a website are redirected using js. Is there any way to crawl the website? What if ajax loads some page content?
Its website links are similar to the following:
Script $ ('. link '). click (function () {var url = $ (this ). attr ('url'); $. get (url, function (data) {('{content'}.html (data) ;})}); script
Header 302 jump directly add the CURLOPT_FOLLOWLOCATION parameter JavaScript jump preg match jump URL