can anyone of u guyz get me out of da problem m having m sure u guyz can ...
i had the python re-captcha thingy to enter the captchas on a website but now tht website has putted some code on the captchas nd re-captcha script is not working someone help me out plz :)
Thank You,
Faizan

Salem commented: Aww, that's a shame, perhaps you need to get a real job instead. -6

You'll have to adapt your code to the website's new layout/API/whatever. Maybe you could provide more details and a little code so that we have some idea of what you're talking about.

cj = cookielib.CookieJar()
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
opener.addheaders = [('User-agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6')]

cho = raw_input ('Please enter amount of captchas you would like to get, 1, 5, 10, 20, 25, 30, 40 or 48: ')

if cho == "1":
challenge = alo("http://api.recaptcha.net/challenge?k=6LcZ-AAAAAAAANX-xwVtzow1f4RpSrbSViRUx9Js")
source = challenge.read()
challeng1 = source.split("challenge")[1].split("',")[0].split("'")[1]
print "Challenge Key found ...\n"
imag1 = "http://api.recaptcha.net/image?c="+challeng1+""
webbrowser.open(imag1)
txt1 = raw_input ('Enter the captcha text for Captcha 1: ')
captcha = open("1captcha.txt", "w")
print "---Writing captcha codes ..."
captcha.write('recaptcha_challenge_field='+challeng1+'&recaptcha_response_field='+txt1+'\n')

if cho == "5":
challenge = alo("http://api.recaptcha.net/challenge?k=6LcZ-AAAAAAAANX-xwVtzow1f4RpSrbSViRUx9Js")
source = challenge.read()
challenge1 = source.split("challenge")[1].split("',")[0].split("'")[1]
print "Challenge Key found ...\n"
image1 = "http://api.recaptcha.net/image?c="+challenge1+""
webbrowser.open(image1)
text1 = raw_input ('Enter the captcha text for Captcha 1: ')

Thts the bit of a code of my script ...i think they hav changed their captchas to captcha-sol tht might be the problem ...

Use code tags

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.