How to download an entire directory and subdirectories using wget?

后端 未结 8 1769
生来不讨喜
生来不讨喜 2020-12-07 07:33

I am trying to download the files for a project using wget, as the SVN server for that project isn\'t running anymore and I am only able to access the files thr

相关标签:
8条回答
  • 2020-12-07 07:42

    You can use this in a shell:

    wget -r -nH --cut-dirs=7 --reject="index.html*" \
          http://abc.tamu.edu/projects/tzivi/repository/revisions/2/raw/tzivi/
    

    The Parameters are:

    -r recursively download
    
    -nH (--no-host-directories) cuts out hostname 
    
    --cut-dirs=X (cuts out X directories)
    
    0 讨论(0)
  • 2020-12-07 07:53

    This link just gave me the best answer:

    $ wget --no-clobber --convert-links --random-wait -r -p --level 1 -E -e robots=off -U mozilla http://base.site/dir/
    

    Worked like a charm.

    0 讨论(0)
  • 2020-12-07 07:56

    use the command

    wget -m www.ilanni.com/nexus/content/
    
    0 讨论(0)
  • 2020-12-07 07:57
    wget -r --no-parent URL --user=username --password=password
    

    the last two options are optional if you have the username and password for downloading, otherwise no need to use them.

    You can also see more options in the link https://www.howtogeek.com/281663/how-to-use-wget-the-ultimate-command-line-downloading-tool/

    0 讨论(0)
  • 2020-12-07 07:59

    you can also use this command :

    wget --mirror -pc --convert-links -P ./your-local-dir/ http://www.your-website.com
    

    so that you get the exact mirror of the website you want to download

    0 讨论(0)
  • 2020-12-07 08:00

    This will help

    wget -m -np -c --level 0 --no-check-certificate -R"index.html*"http://www.your-websitepage.com/dir

    0 讨论(0)
提交回复
热议问题