Anorov / cloudflare-scrape

A Python module to bypass Cloudflare's anti-bot page.
MIT License
3.38k stars 459 forks source link

Could not collect tokens #374

Closed betevents closed 4 years ago

betevents commented 4 years ago

Before creating an issue, first upgrade cfscrape with pip install -U cfscrape and see if you're still experiencing the problem. Please also confirm your Node version (node --version or nodejs --version) is version 10 or higher.

Make sure the website you're having issues with is actually using anti-bot protection by Cloudflare and not a competitor like Imperva Incapsula or Sucuri. And if you're using an anonymizing proxy, a VPN, or Tor, Cloudflare often flags those IPs and may block you or present you with a captcha as a result.

Please confirm the following statements and check the boxes before creating an issue:

Python version number

Run python --version and paste the output below:

Python 3.8.3

cfscrape version number

Run pip show cfscrape and paste the output below:

Version: 2.1.1

Code snippet involved with the issue

Complete exception and traceback

(If the problem doesn't involve an exception being raised, leave this blank)

ERROR:root:'https://beta.betonline.ag' returned an error. Could not collect tokens.

URL of the Cloudflare-protected page

https://beta.betonline.ag

URL of Pastebin/Gist with HTML source of protected page

print scraper.get_tokens('https://beta.betonline.ag')

betevents commented 4 years ago

got it, sorry!