Jump to content
UBot Underground

Downloading files (.jpg) from list


Recommended Posts

Hey guys, 

 

I'm trying to download couple of files with no success.

 

I have a list with urls in text fils as this:

 

http://www.site.com/files/1231231241-small.jpg

http://www.site.com/files/1231231241-small.jpg

http://www.site.com/files/1231231241-small.jpg

http://www.site.com/files/1231231241-small.jpg

http://www.site.com/files/1231231241-small.jpg

 

and list with titles -:

 

asdadas

fasdfasdasdf

asfdasdfasdf

asdfasdfafsdasdf

asdfasdfasdasdf

 

 

My code is something like that :

 

 

add list to list(%link, $list from file("{$special folder("Desktop")}\\links.txt"), "Delete", "Global")
add list to list(%title, $list from file("{$special folder("Desktop")}\\titles.txt"), "Delete", "Global")
 
loop($list total(%link)) {
    set(#name, $next list item(%title), "Global")
    set(#file, $next list item(%link), "Global")
    download file(#file, "{$special folder("Desktop")}\\wetmee\\{#name}.jpg")
}
 
 
 
It gives me ""the given file format is not supported "
 
Would love some help :)
 
excuse my english it is not my mother language.
 
Link to post
Share on other sites

Hi,

 

You may want to add:

clear list(%link)
clear list(%title)

Without "clear list" every "add list to list" will load on the end of your current list.

 

Kevin

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...