A Python module to bypass Cloudflare's anti-bot page.
MIT License
3.4k
stars
462
forks
source link
ValueError: Unable to identify Cloudflare IUAM Javascript on website. Cloudflare may have changed their technique, or there may be a bug in the script. #379
(If the problem doesn't involve an exception being raised, leave this blank)
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/cfscrape/__init__.py", line 255, in solve_challenge
javascript, flags=re.S
AttributeError: 'NoneType' object has no attribute 'groups'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/Users/d073544/dev/workspace/aom-autonomous-buyer/src/main.py", line 108, in <module>
p = get_soup_behind_cloudflare(SIGNIN_ENDPOINT)
File "/Users/d073544/dev/workspace/aom-autonomous-buyer/src/main.py", line 21, in get_soup_behind_cloudflare
page = scraper.get(url).content
File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 543, in get
return self.request('GET', url, **kwargs)
File "/usr/local/lib/python3.7/site-packages/cfscrape/__init__.py", line 129, in request
resp = self.solve_cf_challenge(resp, **kwargs)
File "/usr/local/lib/python3.7/site-packages/cfscrape/__init__.py", line 204, in solve_cf_challenge
answer, delay = self.solve_challenge(body, domain)
File "/usr/local/lib/python3.7/site-packages/cfscrape/__init__.py", line 292, in solve_challenge
% BUG_REPORT
ValueError: Unable to identify Cloudflare IUAM Javascript on website. Cloudflare may have changed their technique, or there may be a bug in the script.
Please read https://github.com/Anorov/cloudflare-scrape#updates, then file a bug report at https://github.com/Anorov/cloudflare-scrape/issues."
Please confirm the following statements and check the boxes before creating an issue:
pip install -U cfscrape
Python version number
Run
python --version
and paste the output below:cfscrape version number
Run
pip show cfscrape
and paste the output below:Code snippet involved with the issue
Complete exception and traceback
(If the problem doesn't involve an exception being raised, leave this blank)
URL of the Cloudflare-protected page
https://shop.ageofmenor.cc/auth/signin
URL of Pastebin/Gist with HTML source of protected page
https://gist.github.com/zkdev/011dd5445cae7d84d85b0b20bab2993d