script was working reliably for weeks, but this morning spit out the above error.
Here is a pastebin of the page text: https://pastebin.com/HXmdsm0E
Page url in the pastebin.
it’s failing at the start of the script, with the line:
cookie_arg, user_agent = cfscrape.get_cookie_string(url)
- Created 5 years ago
- Comments:23 (4 by maintainers)
Top GitHub Comments
Thanks everyone. I’m pre-occupied at the moment, but I’ve identified the change Cloudflare made and will get the module working again in a few hours.
I pushed a change to fix this issue. Can you all please run
pip install cfscrape -U to update to the latest version and check if the issue is resolved now?
Cloudflare made some minor changes to their IUAM challenge, which is what caused the library to break. I also refreshed the user-agent pool and increased the delay to 8 seconds to make it a little bit harder for them to detect.