Using BeatCaptchas with iMacros?

Joined
Oct 27, 2009
Messages
98
Reaction score
28
Hey guys! I want to use beatcaptchas with iMacros. The following iMacro code is not working for me. I am running into problems trying to figure out what to put where it says <THIS IS WHERE YOU INSERT CAPTCHA HREF>. I tried using 'save item' as I was recording and even 'extract data', but I'm having any luck. Has anyone out there had any luck doing this?

Code:
<your start of the macro is here>
   'typically you put this code when you are first able to see/download the captcha
   'this deletes the previous captcha picture otherwise imacros will have errors
   FILEDELETE NAME=c:\pic.jpg
   'this sets where you want to download the captcha to on your computers. You MUST call the captcha pic.jpg otherwise errors might happen
    
   ONDOWNLOAD FOLDER=c:\FILE=pic.jpg
   'this downloads the captcha you do this by using the SAVE ITEM command while recording and click on the captcha
    TAG POS=1 TYPE=IMG ATTR=HREF:<THIS IS WHERE YOU INSERT CAPTCHA HREF>CONTENT=EVENT:SAVEITEM
    
   'this opens and brings you to a new tab to upload your captcha
   TAB OPEN
    TAB T=2
    URL GOTO=http://beatcaptchas.com/captcha.php
   'you are given a key upon signup and you paste it here 
    TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:upload.php ATTR=ID:key CONTENT=<PASTE KEY HERE>
   'this is the location of your captcha on your computer to upload
    TAG POS=1 TYPE=INPUT:FILE FORM=ACTION:upload.php ATTR=NAME:file CONTENT=C:\pic.jpg
    WAIT SECONDS=3
    TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:upload.php ATTR=NAME:submit
    TAG POS=1 TYPE=BODY ATTR=TXT:* EXTRACT=TXT
   'this sets the captcha as variable 1 to use later
    SET !VAR1 {{!EXTRACT}} 
    TAB  T=1
   'this shows an example of how to input the variable into the captcha input
   TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:regFormBody ATTR=ID:captcha CONTENT={{!var1}}
   <END OF MACRO HERE>
 
It seems that you need to 'save item' in iMacros by clicking the save item button then clicking on the captcha. You need to change the click mode to 'Use complete HTML tag'. Which generates the following code:

Code:
TAG POS=1 TYPE=IMG ATTR=ALIGN:textTop&&HREF:http://www.youtube.com/cimg?c=Y6B85YXFKKtAjHwBfPfBLO_w9PPljtRIr0lPJQbDN60t7B1NhyYqSQ==&0.32492793964423266&&NAME:http://www.youtube.com/cimg?c=Y6B85YXFKKtAjHwBfPfBLO_w9PPljtRIr0lPJQbDN60t7B1NhyYqSQ==&0.32492793964423266&&SRC:http://www.youtube.com/cimg?c=Y6B85YXFKKtAjHwBfPfBLO_w9PPljtRIr0lPJQbDN60t7B1NhyYqSQ==&0.32492793964423266&&NAME:verificationImg CONTENT=EVENT:SAVEITEM

My problem now is figuring out where to put the wildcard in that code. Any ideas?
 
Code:
TAG POS=1 TYPE=IMG ATTR=ALIGN:textTop&&HREF:http://www.youtube.com/cimg?c=*&&NAME:http://www.youtube.com/cimg?c=*&&SRC:http://www.youtube.com/cimg?c=*&&NAME:verificationImg CONTENT=EVENT:SAVEITEM

corrected
 
Last edited:
When I put in your corrected line I get a -301 Error in Line x (TAG command not found in web page. I'll keep playing around with this. Thanks for giving me a hand.
 
Back
Top