Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

403 Responses with CAPTCHA

See original GitHub issue

I’m scraping through a Tor connection. But every request if its either get_tokens() or get() returns a 403 page with CAPTCHA. When I browse to the site through a Tor browser I get right to the site without any CAPTCHA or 403.

My question is: how can I debug cfscrape in order to better understand what is going wrong?

My minimal functional code looks like:

`import cfscrape

proxies = { “http”: “socks5h://localhost:9050”, “https”: “socks5h://localhost:9050” }

url = “omitted” tokens, user_agent = cfscrape.get_tokens(url, proxies=proxies) print(tokens)`

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:12

github_iconTop GitHub Comments

quancorecommented, Feb 28, 2019

There are several issues currently open for this problem. In my case, the server also returns captcha but in reality, it is not. Waiting for maintainers to handle if possible and feasible.

CalmLogarithmcommented, Mar 13, 2019

@pro-src The requests library version is 2.21.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google recaptcha API POST request giving 403 Forbidden Error
403 Error was due to outbound https connections blocked from the requesting server. When https connection is allowed in server settings.
Read more >
Contact form 403 response, google reCaptcha
When I submit the contact form, an 403 error page appears and says the request for Google reCaptcha-validation failed(Request-Id: ...
Read more >
Captcha is returning 403 error after deny running scripts ...
Captcha appears to require the ability to write php files to the images directory. The webserver throws a 403 when this is prevented....
Read more >
403 Forbidden. WHAT? Why am I seeing this? -
A 403 error usually points at the Firewall that is causing the block. Is the 403 a branded Wordfence block page or what...
Read more >
Replace Forbidden (403) Error with Captcha challenge on ...
On all our shared/reseller/semi dedicated servers it should be giving a captcha in the event an IP is on our blacklist. I'd recommend...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found