aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Search (and download) from a list of files  (Read 3080 times)

dreamer1

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Search (and download) from a list of files
« 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...
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Search (and download) from a list of files
« Reply #1 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!
Logged

dreamer1

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: Search (and download) from a list of files
« Reply #2 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
« Last Edit: March 21, 2007, 01:14:57 PM by dreamer1 »
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Search (and download) from a list of files
« Reply #3 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!
Logged

dreamer1

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: Search (and download) from a list of files
« Reply #4 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
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Search (and download) from a list of files
« Reply #5 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!
Logged

dreamer1

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: Search (and download) from a list of files
« Reply #6 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
« Last Edit: November 19, 2009, 09:06:07 AM by GonoszTopi »
Logged

dreamer1

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: Search (and download) from a list of files
« Reply #7 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

Edit: Fixed wiki link
« Last Edit: November 19, 2009, 09:08:06 AM by GonoszTopi »
Logged