So after lots of reading and tweaking I have come up with several solutions! Now I need your help to get everything running but I know this is a VERY COMMON TOPIC so hopefully there will be a LOT of interest in this thread along with REPLIES .
A few notes before we get started:
- Captcha pops up after 5-10 cover downloads, but once entered correctly will go away for another 5-10.
- Scripting is inevitable for any of these to work, so I need your help.
- Loop will need to be in script because if/then statement or similar will be needed to know if captcha appeared.
-
Possible Solutions (from worst to best):
1. IF download button not found, call prompt to enter captcha WITHOUT ending the datasource loop
2. Proxy Rotating!
Use two datasources.. once for "proxies" and one for "cd/dvd titles"
If captcha is encountered.. change proxy from datasource1, reload page, and continue loop of cd/dvd titles at where it stopped in datasource2
Please assist with your thoughts and vbs knowledge so we can find a solution for the CAPTCHA.Ex.
In the macro please use
PROXY ADDRESS={{myproxy}}
In the script please use
w.iimSet("-var_myproxy", datasource1)
My Macro
Code: Select all
VERSION BUILD=6071024 RECORDER=FX
SET !TIMEOUT 10
SET !ERRORIGNORE YES
CMDLINE !DATASOURCE cds.txt
SET !DATASOURCE_COLUMNS 1
SET !DATASOURCE_LINE {{!LOOP}}
'
TAB T=1
URL GOTO=http://www.allcdcovers.com/index.php
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:http://www.allcdcovers.com/search ATTR=ID:searchphrase CONTENT={{!COL1}}<SP>retail
TAG POS=1 TYPE=SELECT FORM=ACTION:http://www.allcdcovers.com/search ATTR=ID:category_name CONTENT=%music
TAG POS=1 TYPE=INPUT:IMAGE FORM=ID:searchBarForm ATTR=ID:searchSubmit
'
'Select and open cover
TAG POS=1 TYPE=A ATTR=TXT:CD
TAG POS=1 TYPE=IMG ATTR=SRC:http://www.allcdcovers.com/images/en/download.gif
'Captcha Enter
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:/download/* ATTR=ID:captcha CONTENT=
PROMPT Damn<SP>Captcha!!! !VAR1
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:/download/* ATTR=ID:captcha CONTENT={{!VAR1}}
TAG POS=1 TYPE=INPUT:IMAGE FORM=ACTION:/download/* ATTR=NAME:commit
'Download Cover
ONDOWNLOAD FOLDER=c:/My<SP>Documents/CD-Covers FILE=+.JPG
TAG POS=1 TYPE=IMG ATTR=HREF:http://www.allcdcovers.com/download/*-cd CONTENT=EVENT:SAVEITEM
Code: Select all
offspring americana
linkin park minutes
metallica reload
nickelback curb
offspring smash
fuel angels and devils
fuel sunburn
staind dysfunction
staind shades of grey
staind break the cycle