Arias800 / CloudflareScraper

This is an experimental update of Team Universal's UniversalScrapers' cfscrape.py, which tries to solve a CF challenge with local Python code with as few imports as possible.
MIT License
11 stars 0 forks source link

Captcha support #4

Open Arias800 opened 5 years ago

Arias800 commented 5 years ago

I started to work for add support of ReCaptcha with manuel resolve but It's not finish because I don't have finish to get the last token https://github.com/Arias800/Fichier-divers/blob/master/cfrecaptcha/cfCaptcha.py

doko-desuka commented 5 years ago

The captcha they use is Google's ReCaptcha, so if you find a way to let the user solve that in Python, that's what you'd use.

The only code I know that lets you solve this kind of captcha outside

doko-desuka commented 5 years ago

...outside of the page it appears on, is JDownloader's:
https://github.com/mirror/jdownloader/blob/master/src/org/jdownloader/captcha/v2/challenge/recaptcha/v2/RecaptchaV2Challenge.java#L500-L517

But what they actually use is a customizable Java browser, so they can go in and manipulate the page and do whatever they want between requests.

Matthew17-21 commented 5 years ago

Why not have a captcha service solve the ReCaptcha for the user?

ebs111222 commented 5 years ago

@mlugo2017 do you know of a free service?

Matthew17-21 commented 5 years ago

Not free ones, unfortunately. I figured it was best to use a service such as 2captcha to solve the captchas just in case one was planning on scraping a site or anything similar.

Arias800 commented 5 years ago

I have update the file (in this version in can get the recaptcha token but I'm stuck with the cloudflare parameters) : https://github.com/Arias800/Fichier-divers/commit/18d74b7fc3eadb34e96ae08c6faa2ef6cf7d06a1

Arias800 commented 5 years ago

Does anyone know why cloudflare response with a error 500 ? : https://github.com/Arias800/Fichier-divers/blob/master/cfrecaptcha/cfCaptcha.py