Captcha img changes when downloaded

Discussions and Tech Support related to website data extraction, screen scraping and data mining using iMacros.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
warlock72
Posts: 1
Joined: Sat Jan 16, 2016 6:10 am

Captcha img changes when downloaded

Post by warlock72 » Sat Jan 16, 2016 7:27 am

At the moment I'm trying to display a captcha in a message box so I can complete it manually then let it continue automatically, but as I progress I intend to have captchas sent to a Captcha solving site. The problem I've got with one site is I haven't got a direct link to the image. So when I download the captcha I just get a different image to what is still on the webpage.
It there a way round this?

http://buxvertise.com/modules/captcha/c ... hp?r=login

I' started with iMacros 3 days ago so apologies if this is a stupid question. Ive searched through older posts but couldnt find anything
regarding it.

I'm using iMacros version 6.90 with internet explorer 8 on windows 7
IrishMacro
Posts: 135
Joined: Wed Nov 03, 2010 12:27 pm

Re: Captcha img changes when downloaded

Post by IrishMacro » Fri Feb 12, 2016 1:25 pm

Yeah image is generated in the backend and will change every time it's loaded.
This is the reason catchas exist, to be bot-proof :D
Firefox free plugin, last version
Win7
User avatar
thecoder2012
Posts: 405
Joined: Sat Aug 15, 2015 5:14 pm
Location: Internet
Contact:

Re: Captcha img changes when downloaded

Post by thecoder2012 » Tue Mar 01, 2016 1:58 am

IrishMacro wrote:Yeah image is generated in the backend and will change every time it's loaded.
This is the reason catchas exist, to be bot-proof :D
Not really. The solution is SAVE_ELEMENT_SCREENSHOT like (from solvemedia example)
TAG POS=1 TYPE=IMG ATTR=ID:adcopy-puzzle-image-image-profit CONTENT=EVENT:SAVE_ELEMENT_SCREENSHOT

It's possible with iMacros Browser, IE and Firefox.
Link: http://wiki.imacros.net/SAVE_ELEMENT_SCREENSHOT

See the solvemedia example "9kweu_media.iim" as download: media.zip
Last edited by thecoder2012 on Fri Dec 15, 2017 8:07 pm, edited 1 time in total.
Join 9kw.eu Captcha Service now and let your iMacros continue downloads and scripts while you sleep. - Custom iMacros? Contact me! :idea:
kaos6669
Posts: 8
Joined: Sun Mar 13, 2016 5:36 pm

Re: Captcha img changes when downloaded

Post by kaos6669 » Tue Mar 29, 2016 4:13 pm

if you want i would give you a hand whats the website and what you have it doing
User avatar
thecoder2012
Posts: 405
Joined: Sat Aug 15, 2015 5:14 pm
Location: Internet
Contact:

Re: Captcha img changes when downloaded

Post by thecoder2012 » Tue Mar 29, 2016 9:32 pm

Example with login form and captcha for imacros:

Code: Select all

VERSION BUILD=8961227 RECORDER=FX
SET !EXTRACT_TEST_POPUP NO
SET !TIMEOUT_PAGE 999
SET !ERRORIGNORE YES
TAB T=1
URL GOTO=http://buxvertise.com/index.php?view=login
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:loginform ATTR=ID:username CONTENT=yourusername
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD FORM=ID:loginform ATTR=ID:password CONTENT=yourpassword
WAIT SECONDS = 2
ONDOWNLOAD FOLDER=d:\ FILE=image.jpg WAIT=YES
TAG POS=1 TYPE=IMG ATTR=ID:captchaimglogin CONTENT=EVENT:SAVE_ELEMENT_SCREENSHOT
WAIT SECONDS=3

TAB OPEN
TAB T=2

URL GOTO=http://www.9kw.eu/grafik/form.html
TAG POS=1 TYPE=INPUT ATTR=NAME:apikey CONTENT=yourapikey
TAG POS=1 TYPE=INPUT ATTR=NAME:source CONTENT=imacros
TAG POS=1 TYPE=INPUT ATTR=NAME:file-upload-01 CONTENT=d:\image.jpg
TAG POS=1 TYPE=INPUT ATTR=TYPE:submit
WAIT SECONDS=5
SET !TIMEOUT_STEP 999
TAG POS=1 TYPE=INPUT ATTR=NAME:result EXTRACT=TXT
SET !VAR1 {{!EXTRACT}}
TAB CLOSE

TAB T=1
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:loginform ATTR=ID:captcha_login CONTENT={{!VAR1}}
TAG POS=1 TYPE=BUTTON FORM=ID:loginform ATTR=NAME:login
FILEDELETE NAME=d:\image.jpg
Join 9kw.eu Captcha Service now and let your iMacros continue downloads and scripts while you sleep. - Custom iMacros? Contact me! :idea:
Post Reply