cloudflare-scrape
cloudflare-scrape copied to clipboard
ckgsir.com protected by CF
trafficstars
- [x] I've upgraded cfscrape with
pip install -U cfscrape - [x] I'm using Node version 10 or higher
- [x] The site protection I'm having issues with is from Cloudflare
- [x] I'm not using Tor, a VPN, or an anonymizing proxy
Python version number
Run python --version and paste the output below:
Python 3.8.7
cfscrape version number
Run pip show cfscrape and paste the output below:
Name: cfscrape
Version: 2.1.1
Summary: A simple Python module to bypass Cloudflare's anti-bot page. See https://github.com/Anorov/cloudflare-scrape for more information.
Home-page: https://github.com/Anorov/cloudflare-scrape
Author: Anorov
Author-email: [email protected]
License: UNKNOWN
Location: c:\users\myhero\appdata\local\programs\python\python38\lib\site-packages
Requires: requests
Required-by:
Code snippet involved with the issue
scraper = cfscrape.create_scraper()
res = scraper.get("https://ckgsir.com")
print(res.text)
scraper.solve_challenge(res.text, "https://ckgsir.com")
Complete exception and traceback
(If the problem doesn't involve an exception being raised, leave this blank)
EXCEPTION => ( <class '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."
Traceback (most recent call last):
File "C:\Users\MyHero\AppData\Local\Programs\Python\Python38\lib\site-packages\cfscrape\__init__.py", line 249, in solve_challenge
javascript = re.search(r'\<script type\=\"text\/javascript\"\>\n(.*?)\<\/script\>',body, flags=re.S).group(1) # find javascript
AttributeError: 'NoneType' object has no attribute 'group'
URL of the Cloudflare-protected page
https://ckgsir.com
URL of Pastebin/Gist with HTML source of protected page
https://gist.github.com/sh-erfan/3867c60f53fb1f68f20fd54c6e3510e2