Closed unixfox closed 4 years ago
At this early stage, it's more like POC than a real solution. I also used request, which is a deprecated package. But I'm open to all suggestions and this is a good one, thanks, I'll make the change. Don't hesitate if you have more.
I changed it.
Cloudflare allows to change some part of the template of the verification page. I think looking for the words "Just a moment..." in the title is not a good idea because a website could bypass your program just by changing the title of the verification page: https://github.com/JimmyLaurent/cloudflare-scraper/blob/master/src/getCookies.js#L24 It's better to look for
cf-browser-verification
or another "generic" tag in the HTML code because that is something that the owner can't change because it's part of the "verification" JavaScript code of Cloudflare: