Open carlos-mg89 opened 3 years ago
Oh, I know the problem. The cookie you set will make the website not return cf_clearance
cookie.
Try to set mobile user-agent like Mozilla/5.0 (Linux; Android 6.0.1; SM-G920V Build/MMB29K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.98 Mobile Safari/537.36
Thanks for getting back :)
Do I have to add cf_clearance
anywhere?
I've tried with the User Agent you've proposed, but cannot make it to the onSuccess callback...
no, cf_clearance
are required to bypass cf.
This looks like a problem with my insufficient test samples, but I don’t have time these days.
Will try to start fix bug on friday
no,
cf_clearance
are required to bypass cf.This looks like a problem with my insufficient test samples, but I don’t have time these days.
Will try to start fix bug on friday
Hello, problem is still again, but changing user agent dont help (
Hi!
First of all, I appreciate very much your efforts to make scrapping a Cloudflare based website possible.
My situation is the following one. I have setup an Android project and in the Main Activity, I'm trying to use your package as described in the main page.
So these are my steps:
implementation 'com.zhkrb.cloudflare-scrape-android:scrape-webview:0.0.4'
as described in the READMEMainActivity
(at the end of theonCreate()
method):I have added 2 breakpoints in the
onSuccess()
and in theonFail()
methods, and the result is always the same. The code gets to theonFail()
method, with code => 260 and msg => "Retries exceeded the limit".Perhaps CloudFlare has done any changes recently? I can see the latest release of your library was done in February 2021, so quite recently.
Thanks in advance!