Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Wget help

  1. #1
    Join Date
    Dec 2004
    Location
    hacking on my Debian box
    Beans
    1,305

    Question Wget help

    Hi there!

    I'd like to get the ogg files from http://www.archive.org/details/ym1999-10-21.shnf with Wget, how would I go about that?

    I tried reading the manual page and there was an example that looked quite similar, the one about gif files. However, it didn't work. I just got some folders and a robots.txt file. However, I did manage to wget the first ogg file by just pointing wget to the URL, so I think it can be made to work. They also offer a list view http://ia301113.us.archive.org/2/ite...999-10-21.shnf

    Anybody around here with some Wget-fu got a minute?

  2. #2
    Join Date
    Apr 2007
    Location
    Mount Horeb, WI
    Beans
    4,312
    Distro
    Kubuntu Development Release

    Re: Wget help

    Are you able to download the file if you do something like this:
    Code:
    wget -c http://ia301113.us.archive.org/2/items/ym1999-10-21.shnf/ym1999-10-21d1t01.ogg
    Is that what you are looking for? The -c will allow the file to continue downloading where it left off if for some reason the connection disconnects.

  3. #3
    Join Date
    Dec 2004
    Location
    hacking on my Debian box
    Beans
    1,305

    Re: Wget help

    Thanks for the reply. I got the one file just fine. I'd like to get them all now. Of course I could do it manually but I'm sure there's a better way for lazy people like yours truly.

  4. #4
    Join Date
    Nov 2008
    Location
    USA
    Beans
    14
    Distro
    Kubuntu 8.04 Hardy Heron

    Re: Wget help

    I believe that the -r (recursive) option will get all the files in a directory.

  5. #5
    Join Date
    Apr 2007
    Location
    Mount Horeb, WI
    Beans
    4,312
    Distro
    Kubuntu Development Release

    Re: Wget help

    Without having to write a script, you could also attach multiple files on one line:
    Code:
    wget -c http://ia301113.us.archive.org/2/items/ym1999-10-21.shnf/ym1999-10-21d1t01.ogg http://ia301113.us.archive.org/2/items/ym1999-10-21.shnf/ym1999-10-21d1t02.ogg
    I am not for sure how many can fit into one line though.

  6. #6
    Join Date
    Dec 2004
    Location
    hacking on my Debian box
    Beans
    1,305

    Re: Wget help

    Thanks again guys. Still not exatly what I want. I don't want the mp3 files or anything else besides the oggs. And I'd like to find out how to do it the smart way.
    Last edited by glotz; December 5th, 2008 at 07:48 PM.

  7. #7
    Join Date
    Apr 2007
    Location
    Mount Horeb, WI
    Beans
    4,312
    Distro
    Kubuntu Development Release

    Re: Wget help

    Are you able to access the site via ftp? I am not for sure if it will ask for a username or password. If it does not, you would be able to get the files that way. I would try it out, but I currently don't have ftp installed (currently using gentoo).

  8. #8
    Join Date
    Dec 2004
    Location
    hacking on my Debian box
    Beans
    1,305

    Re: Wget help

    Well for the heck of it I tried ftp. They don't do passive mode. Don't like it otherwise.

    I'm sure there's a simple wget one liner to get this simple job done. And out there's somebody who knows it.
    Last edited by glotz; December 5th, 2008 at 08:17 PM.

  9. #9
    Join Date
    Nov 2008
    Location
    USA
    Beans
    14
    Distro
    Kubuntu 8.04 Hardy Heron

    Re: Wget help

    Sorry, didn't realize there were other files in the directory. You can use the -A (or --accept) option.

    wget -A ogg http://whatever/it/is

    You can read more about it in the wget manual.

  10. #10
    Join Date
    Dec 2004
    Location
    hacking on my Debian box
    Beans
    1,305

    Re: Wget help

    No worky.

    wget -A ogg http://ia301113.us.archive.org/2/ite...99-10-21.shnf/
    --10:30:51-- http://ia301113.us.archive.org/2/ite...99-10-21.shnf/
    => `index.html'
    Resolving ia301113.us.archive.org... 207.241.225.214
    Connecting to ia301113.us.archive.org|207.241.225.214|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 11,164 (11K) [text/html]

    100%[====================================>] 11,164 46.59K/s

    10:30:51 (46.47 KB/s) - `index.html' saved [11164/11164]
    Last edited by glotz; December 6th, 2008 at 09:34 AM.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •