Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ckgsir.com protected by CF #451

Open
4 tasks done
sh-erfan opened this issue Sep 16, 2022 · 0 comments
Open
4 tasks done

ckgsir.com protected by CF #451

sh-erfan opened this issue Sep 16, 2022 · 0 comments
Labels

Comments

@sh-erfan
Copy link

  • I've upgraded cfscrape with pip install -U cfscrape
  • I'm using Node version 10 or higher
  • The site protection I'm having issues with is from Cloudflare
  • 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

@sh-erfan sh-erfan added the bug label Sep 16, 2022
@sh-erfan sh-erfan changed the title ckgsir.com protected bt CF ckgsir.com protected by CF Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant