aMule Forum

English => aMule Help => Topic started by: dreamer1 on March 21, 2007, 10:55:32 AM

Title: Search (and download) from a list of files
Post by: dreamer1 on March 21, 2007, 10:55:32 AM
Hi,

I have a list of 100 files I'd like to download (songs, documents, software, whatever).
Is it possible to avoid typing the 100 names and clicking the search button 100 times?
Is there a command line parameter or a hack that will make aMule search for all the files in a given list (and idealy download the result with most sources for each of the files in a list!) ?

thanks...
Title: Re: Search (and download) from a list of files
Post by: phoenix on March 21, 2007, 12:07:05 PM
Hi dreamer1,

You should take a look at amulecmd. It is a console application. You can ask it to add an ED2K link to the core like this:

$ amulecmd -c "add ed2k://|file|filename|123443218|AD12344543219B12341EA4321CE1234E|/"

Notice that the ed2k link above is just a bunch of random stuff, you must find the ed2k links of the files you want to donwload. Try

$ amulecmd --help

to see the other options.

Cheers!
Title: Re: Search (and download) from a list of files
Post by: dreamer1 on March 21, 2007, 12:22:56 PM
Thanks phoenix, I know about that possibility but it seems to me it is even more tedious to search for the ed2k links and then give it to amulecmd than searching and downloading in the aMule.

Wait!
On second thought, it doesn't have to be (just crossed my mind).
Hmmm... Let me see...
I could write a script which will:
1. 'wget' a web search for each file and write the resulting page to a tmp file
2. 'grep/sed' the tmp file to extract the first ed2k link in it
3. 'amulecmd add' extracted link

If there isn't a more direct way this could just do it!
Thanks for making me think!
Any other suggestions?

dreamer1
Title: Re: Search (and download) from a list of files
Post by: phoenix on March 21, 2007, 06:07:44 PM
Hi dreamer1,

I can't think of anything else. You could probably add your script to our wiki, that would be a nice contribution!

Good work!
Title: Re: Search (and download) from a list of files
Post by: dreamer1 on March 22, 2007, 03:06:05 PM
Sure, why not! If you only provided some directions...

What search engine do you recommend for the ed2k links?

Dreamer
Title: Re: Search (and download) from a list of files
Post by: phoenix on March 22, 2007, 08:40:14 PM
I never use search engines, I always use aMule search feature. You are on your own on this.

Cheers!
Title: Re: Search (and download) from a list of files
Post by: dreamer1 on March 23, 2007, 02:25:50 PM
Ok, I've got it done and it does exactly the job I wanted!
Hope it'll be useful for someone else too.

There is no guarantee that everything will work perfectly, but on average I think it will be ok.

If I've missed something, feel free to ask!

Dreamer

CHECK WIKI:
 http://wiki.amule.org/index.php/Automatically_search_and_download_arbitrary_number_of_files

Edit: Fixed wiki link
Title: Re: Search (and download) from a list of files
Post by: dreamer1 on March 29, 2007, 04:46:21 PM
For all out there interested, there is a wiki now, at:
    http://wiki.amule.org/index.php/Automatically_search_and_download_arbitrary_number_of_files (http://wiki.amule.org/index.php/Automatically_search_and_download_arbitrary_number_of_files)

Edit: Fixed wiki link