Looking for php script that can bypass cloudflare (under attack mode) and scrape the website.
There are a lot of repository on github, but i have no idea how to integrate them into php
its way more complicated that php only will not work for you u will clean proxies and nodejs with good experince and captcha solving api
best solution i think is scraperapi.com
you'll just need the cookies and headers from a session that has made it though the cloudlflare redirect. Some configurations of Selenium WebDriver (package to allow programmatic control of a browser) will work with this, then once you have the cookes and any headers you should be good until cookie expirys/header changes. Only way this becomes a pain in the ass is if it starts asking to complete a captcha before redirect, but you can integrate a captcha api to solve those if really needed as tabestmaker says.
Selenium does seem to have PHP bindings, although not sure what they are like to work with as i've used it with python only.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.