Anorov / cloudflare-scrape

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

CloudFlare Issue (via SickRage) #148

Closed daraghfi closed 6 years ago

daraghfi commented 6 years ago

2018-04-07 14:44:10 SEARCHQUEUE-DAILY-SEARCH :: [Torrent9] :: [1d34bcb] Request failed: Error parsing Cloudflare IUAM Javascript challenge. Cloudflare may have changed their technique, or there may be a bug in the script.

FYI - thanks for posting open source!

jrevillas commented 6 years ago

Same here, using latest version.

smorison commented 6 years ago

i'm still having issues in SR as well... error and version below

2018-04-08 17:58:07 SEARCHQUEUE-MANUAL-270261 :: [Torrent9] :: [1d34bcb] Request failed: Error parsing Cloudflare IUAM Javascript challenge. Cloudflare may have changed their technique, or there may be a bug in the script.

Name: cfscrape
Version: 1.9.5
Summary: A simple Python module to bypass Cloudflare's anti-bot page. See https://github.com/Anorov/cloudflare-scrap e for more information.
Home-page: https://github.com/Anorov/cloudflare-scrape
Author: Anorov
Author-email: anorov.vorona@gmail.com
License: UNKNOWN
Location: /usr/lib/python2.7/site-packages
Requires: requests

skaynl commented 6 years ago

same bug, update everything there is to update but still this error.

iliamihai commented 6 years ago

Traceback (most recent call last): File "sc.py", line 1, in import cfscrape File "/root/cfbypasstest/cloudflare-scrape/cfscrape/init.py", line 8, in from requests.sessions import Session ImportError: No module named requests.sessions

Anyone? requests already install

Dohnerd commented 6 years ago

Still getting the error after cfscrape update

2018-04-06 11:37:23 SEARCHQUEUE-DAILY-SEARCH :: [Torrentz] :: [1d34bcb] Request failed: Error parsing Cloudflare IUAM Javascript challenge. Cloudflare may have changed their technique, or there may be a bug in the script.

[/] # pip show cfscrape Name: cfscrape Version: 1.9.5

VeNoMouS commented 6 years ago

@Dohnerd you do realise, that sickrage uses its own packed cfscrape... https://github.com/SickRage/SickRage/blob/master/lib/cfscrape/__init__.py

root@wl41988:/tmp# git clone https://github.com/SickRage/SickRage.git
Cloning into 'SickRage'...
remote: Counting objects: 78033, done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 78033 (delta 9), reused 15 (delta 8), pack-reused 78013
Receiving objects: 100% (78033/78033), 99.85 MiB | 5.47 MiB/s, done.
Resolving deltas: 100% (49475/49475), done.
root@wl41988:/tmp# cd SickRage/
root@wl41988:/tmp/SickRage# python
Python 2.7.13 (default, Nov 24 2017, 17:33:09) 
[GCC 6.3.0 20170516] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from lib import cfscrape
>>> cfscrape.__version__
'1.9.4'
>>> 

And that version being 1.9.4... hardly see how its @Anorov's issue, im a dev for sickbeard torrent providers edition and i upgraded our version fine ...

@miigotu can you assist your users :P

Anorov commented 6 years ago

You will need to contact SickRage's developers. They have an outdated version of cfscrape bundled with their project.

skaynl commented 6 years ago

It seems Sickrage had some updates today that fixed it. At least I haven’t had the error for an hour now, bit soon to tell but just saying.

From: Dohnerd notifications@github.com Sent: maandag 9 april 2018 10:53 To: Anorov/cloudflare-scrape cloudflare-scrape@noreply.github.com Cc: skay skay@skay.nl; Comment comment@noreply.github.com Subject: Re: [Anorov/cloudflare-scrape] CloudFlare Issue (via SickRage) (#148)

@VeNoMouShttps://github.com/VeNoMouS don't really see where you are going with that? I followed https://github.com/Anorov/cloudflare-scrape#dependencies and updated as the original issue with cloudflare in SR suggested, but still have the error, there are no pending updates avail at SR, so I'm declaring that i still have the issue?

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/Anorov/cloudflare-scrape/issues/148#issuecomment-379681468, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AC4kkpkSOkh9yJAq2vmDmmioulKnX7HIks5tmyFggaJpZM4TLOkl.

VeNoMouS commented 6 years ago

@skaynl yea hence why i tagged @miigotu and hes got the power to authorize commits on sickrage :P

re @Dohnerd you do realize pip upgrading your own installed version of cfscrape isn't going to matter... as sickrage has cfscrape packaged under its own lib directory and that was 1.9.4 i did paste that... guess you just failed to understand what i meant...

anyway you guys are back up and running so you guys should be happy, i was simply pointing out it was sickrage that was at fault (due to out dated package) as the fix was released a couple days ago for cfscape.

Dohnerd commented 6 years ago

Yes that was actually why i deleted my post, I realised you guys didnt have anything to do with SR :)

daraghfi commented 6 years ago

Thanks to all.

To avoid confusion going forward, might I suggest that if SR is using custom code, they might also customize the error message? Just an idea @miigotu

Cheers,

Daragh

miigotu commented 6 years ago

SickRage is not using custom code. We provide a vanilla copy of cfscrape with the source, to save you time. The fix was put into SickRage right after it was released here, it was just in our develop branch going through the vetting process. Let the maintainers maintain. When you have an issue using SR report it on SR.

daraghfi commented 6 years ago

@miigotu thanks for the response and clarification. I found myself at this site because the error directed me here, just FYI. Please see below. Thanks again for contributing to opensource.

2018-04-08 21:49:07 ERROR SEARCHQUEUE-BACKLOG-183411 :: [Torrent9] :: [a760263] Request failed: Error parsing Cloudflare IUAM Javascript challenge. Cloudflare may have changed their technique, or there may be a bug in the script. AA Please read https://github.com/Anorov/cloudflare-scrape#updates, then file a bug report at https://github.com/Anorov/cloudflare-scrape/issues." AA ValueError: Error parsing Cloudflare IUAM Javascript challenge. Cloudflare may have changed their technique, or there may be a bug in the script. AA raise requests_exception AA File "/volume2/@appstore/sickbeard-custom/var/SickBeard/sickbeard/helpers.py", line 1525, in handle_requests_exception AA Traceback (most recent call last): AA Please read https://github.com/Anorov/cloudflare-scrape#updates, then file a bug report at https://github.com/Anorov/cloudflare-scrape/issues."

VeNoMouS commented 6 years ago

LOL ^^ , yea i took that out on my version :P