tko2003 Posted May 23, 2009 Posted May 23, 2009 Hello Group, i have a productlist which has some fields with some values there... productid, productpic 203857,http://www.webdatenblatt.de/cds/de/?pid=fa66e2e61986909 There are much more of this values, but this are the important ones. How am i able to download the productpic, but save it with the productid, for example 203857.gif? The links are located in a xls file, but i am able to copy&paste this in a flat textfile. I am really lost, any help would be greatly appreaciated. tko2003
colafrysen Posted May 23, 2009 Posted May 23, 2009 (edited) How to download the files. (it does not seem the link you have points to a picture though) If i understand your question right: $input = "203857,http://www.webdatenblatt.de/cds/de/?pid=fa66e2e61986909" $Split = StringSplit($input,',') _Download($Split[2],$Split[1]) Func _Download($URL,$ID) InetGet ($URL,$ID&'.gif') EndFunc EDIT: forgot that Split[0]= the number of items splitted Edited May 23, 2009 by colafrysen [font="Impact"]Use the helpfile, It´s one of the best exlusive features of Autoit.[/font]http://support.microsoft.com/kb/q555375ALIBI Run - a replacement for the windows run promptPC Controller - an application for controlling other PCs[size="1"]Science flies us to the moon. Religion flies us into buildings.[/size][size="1"]http://bit.ly/cAMPZV[/size]
tko2003 Posted May 25, 2009 Author Posted May 25, 2009 How to download the files. (it does not seem the link you have points to a picture though) If i understand your question right: $input = "203857,http://www.webdatenblatt.de/cds/de/?pid=fa66e2e61986909" $Split = StringSplit($input,',') _Download($Split[2],$Split[1]) Func _Download($URL,$ID) InetGet ($URL,$ID&'.gif') EndFunc EDIT: forgot that Split[0]= the number of items splitted Many thanks, and how can i use this script for an larger amount of products?
oMBRa Posted May 25, 2009 Posted May 25, 2009 $input = "203857,http://www.webdatenblatt.de/cds/de/?pid=fa66e2e61986909" $Split = StringSplit($input,',') for $i = 1 to $Split[0] _Download($Split[$i+1],$Split[$i]) next Func _Download($URL,$ID) InetGet ($URL,$ID&'.gif') EndFunc
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now