cloudflare-scrape icon indicating copy to clipboard operation
cloudflare-scrape copied to clipboard

Not Working

Open Alaa-HIjazi opened this issue 4 years ago • 5 comments

I Tried so Many ways and it doesn't bypass CF, i used your method which is not working, i even wrote a code in python to when i get the cookies i add them directly to a curl and so on, and it always give me the cloudfare html ...

Alaa-HIjazi avatar Mar 26 '20 20:03 Alaa-HIjazi

Which site?

lord8266 avatar Mar 27 '20 04:03 lord8266

Which site?

it's dehashed it got the 2 cookies cfduid and cf_clearance a mysession cookie and another cookie, but i debugged the issue in several ways to finally realize if i remove the cf_clearance cookie it will not work, so i literally replaced the cf_clearance id on every request using this technique and it's not working i can share a little of my code and some screenshots

Alaa-HIjazi avatar Mar 27 '20 08:03 Alaa-HIjazi

What output do you get for this

sess=cfscrape.create_scraper()
sess.get_tokens("<your url>")

If you are just getting a 403 then your issue might be similar to #338

Also try for this site: https://www.kissanime.ru to confirm cfscrape works on your side as it is now

lord8266 avatar Mar 28 '20 05:03 lord8266

IMHO, the action used in the submit_url should be the entire string scrapped from the form (eg including the part after the '?'). Further, the "&amp;" strings included should be replaced with "&". At least, this works for me.

re.search(r'action=\"(.*?)\"', challenge_form, flags=re.S).group(1).split('?')[0])

J0rdyZ65 avatar Mar 30 '20 13:03 J0rdyZ65

I'm getting the cookies perfectly but when i include them in a curl to get the json, i always get the cloudfare html this is what i mean, @J0rdyZ65 if i do what you mentioned it will work ? but i'm using the url of the curl. Thank you guys !

Alaa-HIjazi avatar Mar 31 '20 10:03 Alaa-HIjazi