Find the answer to your Linux question:
Results 1 to 3 of 3
Is there a way how to tell fe wget to download all files from www address (or if it can follow links fe 4 levels deep)?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie rat007's Avatar
    Join Date
    Jul 2004
    Location
    Brno
    Posts
    230

    wget - how to download all jpeg files from different sites


    Is there a way how to tell fe wget to download all files from www address (or if it can follow links fe 4 levels deep)?

  2. #2
    unknown
    Guest

    re:wget - how to download all jpeg files from different sites

    I don't know that. But Firefox's scrapbook extension will follow links to specific filetypes 3 levels deep.

  3. #3
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    Try
    Code:
    wget -r -l4 --no-parent -A.jpg http://foo.bar.com
    (replacing http://foo.bar.com with wherever you want to d/l the pics from).

    The -r makes it recursive, the -l4 makes it recursive for four levels, --no-parent means it will not get any parent directories, -A.jpg will get all .jpg files.

    If you have a list of sites you want to do this in you could put them in a file and try
    Code:
    wget -r -l1 --no-parent -A.gif -i file
    hope this helps,

    dylunio
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  4. $spacer_open
    $spacer_close

Posting Permissions

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