Open kopax opened 3 years ago
I have the same error. Did you manage to fix it?
No i use some other library for this, cloudscraper
Can you use cloudscraper for puppeteer like this library?
I am actually getting this error when using that library: ### Cloudflare may have changed their technique, or there may be a bug.
arent you getting the same?
No it keeped working since I implemented it last week
No it keeped working since I implemented it last week
You can share your cloudscraper fixed vers? https://github.com/bestplay9384/cloudscraper this vers has working since 2 month ago, now full patched
I've tested with @coinproduct and for some reason, the challenge was different and it was not passing. Perhaps coinproduct you could try with the version from bestplay9384 using my code sample?
Hi,
I had got the same probleme and it seems fix with this following trick in fillCookiesJar.js at line 21 :
return new Cookie({
key: name,
value,
expires: expiresDate,
domain: domain.startsWith('.') ? domain.substring(1) : domain,
path
}).toString();
Just add .toString() it's done.
Try this and tell me if this works for you.
Bump to this issue
Hi @JimmyLaurent and thanks for sharing,
I am trying
const response = await cloudflareScraper.get('https://www.malt.fr');
in order to scrape my profile, and this is the error:str.trim is not a function
It seems this happen in
tough-cookie@2.5.0
Can this be fixed ? Because it's actually the only client I have found that actually have bypassed the cloudflare security but this error makes it unusuable.
Thanks for reading.