Python Forum
Python Web Automation - Cloudfare Help
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Web Automation - Cloudfare Help
#1
Hi all,

First and foremost, please do forgive me if this has been posted in the wrong section. I wasn’t sure which sub-thread it should go in. I even tried searching for “Python web automation help” to see where other people had posted similar threads so I could follow suit; however, I couldn’t find anything relevant.

I’ve become increasingly fascinated with coding recently, having been curious about it for the longest time. I thought I’d test the waters with Python web automation just for a bit of fun.

A bit of background: I’m only creating something very basic to get a feel for web automation, and I’ll be completely honest, I’ve had quite a lot of help from Claude AI, which a friend recommended to me.

At the moment, I’m putting together a simple script that allows automatic account creation on a gaming website. I’m using proxies for testing, as you get blocked if you keep visiting the registration page. I’ve now stumbled across the Cloudflare CAPTCHA. I did some digging and found that the only way to automate around this is by using a third-party service such as 2Captcha. Purely for learning purposes, I decided to purchase it as it’s only around $3 for roughly 1,000 uses; however, I’ve hit a wall. I can’t seem to get my script to automatically use 2Captcha to solve it.

I’ve used AI to try to understand what I need to do, and it suggests that I need the Turnstile key. I’ve inspected the widget source and used the browser’s “Inspect” tool to try to locate the key that Cloudflare uses. However, even when I add what I believe to be the relevant section into the script, it simply says “trying to solve Cloudflare” and then eventually the command prompt shows “unable to solve, please solve manually”.

Is anyone able to offer any guidance on this? It’s incredibly satisfying when you finally find a solution and the script works as it should, but equally frustrating when you just can’t get something to function the way you need it to, haha.

Thank you for reading my awfully lengthy post! :D
Reply
#2
In order to increase chances that someone may help, please post minimal reproducible example of your code and also describe exactly what "I’ve hit a wall. I can’t seem to get my script to automatically use 2Captcha to solve it." means.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
(Jan-31-2026, 10:12 PM)ConsciousDubWarrior Wrote: I’m putting together a simple script that allows automatic account creation on a gaming website.
That's exactly what websites try to avoid by using counter-measures, mainly to stop spammers and bots flooding their network. So what you are basically asking for is help in working around anti-spam and anti-bot measures. Which leads to the question: what's your intention behind this? And where is the relation to Python? The question is pretty agnostic of the programming language.

Regards, noisefloor
Reply
#4
(Feb-01-2026, 02:52 PM)noisefloor Wrote:
(Jan-31-2026, 10:12 PM)ConsciousDubWarrior Wrote: I’m putting together a simple script that allows automatic account creation on a gaming website.
That's exactly what websites try to avoid by using counter-measures, mainly to stop spammers and bots flooding their network. So what you are basically asking for is help in working around anti-spam and anti-bot measures. Which leads to the question: what's your intention behind this? And where is the relation to Python? The question is pretty agnostic of the programming language.

Regards, noisefloor

I completely understand the concern. I should have clarified better in my original post; my intention isn’t to spam or abuse any platform. I’m just experimenting with web automation to understand how things like CAPTCHA handling and bot-detection systems work from a technical perspective.

I chose Python because I’m currently learning it, and I’m using libraries like requests / Selenium as part of that process. The Cloudflare challenge came up naturally during testing, and I was trying to understand how services like 2Captcha integrate at a code level, not to bypass protections maliciously, but to better understand how automation interacts with modern web security.

If this kind of question isn’t appropriate for the forum, I completely understand. I’m still learning both Python and forum etiquette
Reply
#5
Hi,

ok, let's assume you really have serious intentions. Then your approach is wrong. If you try to understand how any Captcha-based security measure works - implement a web service using any type of Captcha yourself. Then you also see how they integrate at code level. Coming from the other side you "only" learn to circumvent and by-pass security measures, but nothing about the implementation on the server side.

Regards, noisefloor
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Cloudfare scraping? mark 0 2,225 Dec-22-2020, 07:44 PM
Last Post: mark
  Automation WEB sel+Python ABVSVL 3 3,494 Jul-02-2020, 03:50 PM
Last Post: snippsat
  Automation Engine on Python? jfha73 4 3,821 May-01-2020, 02:29 PM
Last Post: jfha73
  Python Script-To perform automation of excel values which need to be feeded into we mrinal3411 1 3,460 Jul-14-2018, 06:12 PM
Last Post: Larz60+
  [Intermediate] Python web Automation testing vardhhan 0 4,336 Feb-18-2018, 06:23 AM
Last Post: vardhhan
  Python Selenium Document Lookup and Download Automation Error - Target Machine active Guttmann 4 7,174 Apr-18-2017, 12:13 AM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020