Reputation: 3292
I was thinking of saving images from a webpage.
So here is my code right now:
URL GOTO=http://www.tppcrpg.net/battle.php?Battle
ONDOWNLOAD FOLDER=* FILE=+_{{!NOW:yyyymmdd_hhnnss}} WAIT=YES
TAG POS=1 TYPE=IMG ATTR=SRC:http://www.tppcrpg.net/validate_image.php?Validate=375645145118 CONTENT=EVENT:SAVEPICTUREAS
What I'm trying to do is get this image and save it in the downloads folder. For some reason it is not giving me the dialog when I try this. Now I'm not very experienced in this so I want to know how to save images.
The Validate
ID is different every time the page gets refreshed. However, it's in the same position of the page every time.
So since I'll be saving like millions of those images, how do I save it so that I name it a n.png
whereas, n
is the loop count being played.
Upvotes: 2
Views: 6615
Reputation: 3537
URL GOTO=http://www.tppcrpg.net/battle.php?Battle
ONDOWNLOAD FOLDER=C:\ FILE=captcha.png WAIT=YES
TAG POS=1 TYPE=IMG ATTR=SRC:http://www.tppcrpg.net/validate_image.php?Validate=* CONTENT=EVENT:SAVE_ELEMENT_SCREENSHOT
Try this code.
Upvotes: 2