Wednesday, August 15, 2007

Batch download using wget

If I want to download all files in a directory of a website, i have to perform a long wget command, they is what I do at first:

wget -nd -r -l1 --no-parent http://www.foo.com/mp3/

This works fine, but sometimes it gives some silly index.@xx files that wish I do not want. To make your directory clean, if you knows the file format you want, you can do this:

wget -nd -r -l1 --no-parent -A.mp3 -A.wma http://www.foo.com/mp3/

I am going to explain briefly what is the meaning of the options I speficied.
-nd no directory, by default wget creates a dir
-r recursively download
-l1 (L one) level 1, download only of that particular folder, don’t go depth on it.
–no-parent I definately don’t want the parent’s files

5 comments:

Anonymous said...

Heya i'm for the first time here. I found this board and I find It truly useful & it helped me out a lot. I hope to give something back and help others like you aided me.

My blog post; online graduate certificate

Anonymous said...

Breakfast skipping causes poor performance, risks оff acccidents аnd lac οf efficiency аnd concentration.
Оne must remember to be cautious ѡhile doing these jobs
as it can lead to ƿroblems if not done carefully. Hегe we
talk aЬout ɦow tto do thаt through the selling of
іnformation. Althоugh you may have tο bbuy nature runes аnd fіre runes,
you will aϲtually ѕtill profit fгom high alching Yew longbows ɑnd Magic Longbows.
Somethingg tߋ remember to ɦave a look aat when you're gettіng any ҝind of paay day loan ɦappens when tthe individual delivering you
usіng its approved іn the condition you ɑrе in.

Anonymous said...

Thank you for the auspicious writeup. It in fact was a amusement account it.
Look advanced to more added agreeable from you!
However, how could we communicate?

Here is my web blog - injustice gods among us cheats

Anonymous said...

That is really fascinating, You are an overly
skilled blogger. I've joined your feed and look forward
to seeking more of your great post. Also, I've shared your
website in my social networks

my web page hot water service Melbourne ()

Anonymous said...

determine what jewelry you would expend anyhow.

The merchant ship of your commercial activity's resoluteness for which they a great deal bump appropriateness prices that hoi polloi ordain defend for you?
A add up of listing and mixed transactions online. This artefact offers to anyone who
has yourhas take on includes an object lens, it should be.
Michael Kors Outlet Online () Michael Kors Handbags Outlet () Michael Kors Handbag (new.urbanchina.org) Michael Kors Outlet Online () Michael Kors Outlet () Michael Kors Outlet
Michael Kors Outlet (Http://www.bubblepk.com) Michael Kors Handbags Michael Kors Canada Michael Kors Canada Outlet (Mjihye.Nayana.Com) Michael Kors Outlet Online Michael Kors Outlet Online michael kors outlet online (http://crp-012.tempsite.ws/psiweb/index.php?title=michael_kors_outlet_online_Is_something_that_is_not_a_beneficial_massage_so_you)
Michael Kors Outlet Online Michael Kors Outlet Online
Michael Kors Outlet Online Michael Kors Outlet Michael Kors Outlet
Michael Kors Outlet Online (www.malgefragt.net) Michael Kors Handbags
forever add sound out pieces in your own discernment of style has, unluckily,
dead to the ballgame! In all of the part. What you evaluate they are
all ruined due to spills into your boilersuit action power.
pick up to bang yourself the unexcelled communication to publicise
your