-
Notifications
You must be signed in to change notification settings - Fork 460
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
Fixed cf new challenge solution #373
base: master
Are you sure you want to change the base?
Conversation
I'm getting a failure when I install from your fork:
I'm going to try to manually run |
@Sraq-Zit i'm newbie. how can i update my local file? |
Reinstall it through this fork
|
cfscrape/__init__.py
Outdated
challenge, ms = re.search( | ||
r"setTimeout\(function\(\){\s*(var " | ||
r"s,t,o,p,b,r,e,a,k,i,n,g,f.+?\r?\n[\s\S]+?a\.value\s*=.+?)\r?\n" | ||
r"(?:[^{<>]*},\s*(\d{4,}))?", | ||
r"s,t,o,p, b,r,e,a,k,i,n,g,f.+?\r?\n[\s\S]+?a\.value\s*=.+?)\r?\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR only works for me if I add ,cpo
into this line, like:
r"s,t,o,p, b,r,e,a,k,i,n,g,cpo,f.+?\r?\n[\s\S]+?a\.value\s*=.+?)\r?\n"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR only works for me if I add
,cpo
into this line, like:
r"s,t,o,p, b,r,e,a,k,i,n,g,cpo,f.+?\r?\n[\s\S]+?a\.value\s*=.+?)\r?\n"
It still don't work with me . Can you test this site ?
https://tubortaxdeal.com
https://www.aichoai.com
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
weird, the JS on those 2 sites looks really different, like it's not even minified or something. I wonder if they're using a different version of the cloudflare protection stuff?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR only works for me if I add
,cpo
into this line, like:
r"s,t,o,p, b,r,e,a,k,i,n,g,cpo,f.+?\r?\n[\s\S]+?a\.value\s*=.+?)\r?\n"
It was added just recently for the websites I tested.
Thanks !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR only works for me if I add
,cpo
into this line, like:
r"s,t,o,p, b,r,e,a,k,i,n,g,cpo,f.+?\r?\n[\s\S]+?a\.value\s*=.+?)\r?\n"
It was added just recently for the websites I tested.
Thanks !
don't work for https://localbitcoins.net
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also doesn't work for http://www.mangago.me/read-manga/hataraku_maousama/
I see cloudflare has updated again the default challenge for uam |
Doesn't work with: https://www.pexels.com/search/man/?format=js&seed=&page=2&type= |
Did Cloudflare change again? |
works today? |
no |
can someone please continue the work of this pr |
Is there a solution for this problem. am stuck since a month to resolve this. |
Wow. and how are you getting on with the solution? I also tried but I have little knowledge .. |
I have not got any solution or workaround. still stuck with the problem
thanks,
Nag
…On Mon, Dec 28, 2020 at 2:15 PM Stanislav ***@***.***> wrote:
Is there a solution for this problem. am stuck since a month to resolve
this.
Wow. and how are you getting on with the solution? I also tried but I have
little knowledge ..
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#373 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANN2TRNDXX22OJGVOIWBMN3SXBASRANCNFSM4ODFEWRA>
.
|
Hi,
I got a workaround for the problem.
get signed up to "scrapingant.com" and use its API (it will produce unique
key) to scape the websites behind cloud flare.
Thanks,
Nag
…On Mon, Dec 28, 2020 at 2:51 PM Nagaraju Gooty ***@***.***> wrote:
I have not got any solution or workaround. still stuck with the problem
thanks,
Nag
On Mon, Dec 28, 2020 at 2:15 PM Stanislav ***@***.***>
wrote:
> Is there a solution for this problem. am stuck since a month to resolve
> this.
>
> Wow. and how are you getting on with the solution? I also tried but I
> have little knowledge ..
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#373 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ANN2TRNDXX22OJGVOIWBMN3SXBASRANCNFSM4ODFEWRA>
> .
>
|
@Sraq-Zit is posible to fix v1 challenge again? |
+ 1 |
There was mainly 3 problems:
Tested on:
EDIT
As of yesterday the tested websites are no more working, due to the new cf challenge.
The challenge lies within the script at the path that goes like
example.com/cdn-cgi/challenge-platform/orchestrate/jsch/v1
Once the script is loaded and executed, the function
_cf_chl_enter()
is called.I will try and see if I can automate the same process in python