Captcha img changes when downloaded

Discussions and Tech Support related to website data extraction, screen scraping and data mining using iMacros.

Moderators: Community Moderators, iMacros Moderators

Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.

Captcha img changes when downloaded

by warlock72 on Sat Jan 16, 2016 12: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
warlock72
 
Posts: 1
Joined: Fri Jan 15, 2016 11:10 pm

Re: Captcha img changes when downloaded

by IrishMacro on Fri Feb 12, 2016 6:25 am

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
IrishMacro
 
Posts: 135
Joined: Wed Nov 03, 2010 5:27 am

Re: Captcha img changes when downloaded

by thecoder2012 on Mon Feb 29, 2016 6:58 pm

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: https://www.9kw.eu/grafik/plugins/9kweu_media.iim
Join 9kw.eu Captcha Service now and let your iMacros continue downloads and scripts while you sleep. - Custom iMacros? Contact me!
User avatar
thecoder2012
 
Posts: 109
Joined: Sat Aug 15, 2015 10:14 am
Location: Internet

Re: Captcha img changes when downloaded

by kaos6669 on Tue Mar 29, 2016 9:13 am

if you want i would give you a hand whats the website and what you have it doing
kaos6669
 
Posts: 8
Joined: Sun Mar 13, 2016 10:36 am

Re: Captcha img changes when downloaded

by thecoder2012 on Tue Mar 29, 2016 2: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!
User avatar
thecoder2012
 
Posts: 109
Joined: Sat Aug 15, 2015 10:14 am
Location: Internet


Return to Data Extraction and Web Screen Scraping

Who is online

Users browsing this forum: No registered users and 3 guests

-->