wget - Download a sub directory

后端 未结 3 1659
鱼传尺愫
鱼传尺愫 2020-12-23 11:47

How do I download only a sub directory using wget? Can I specify the subdirectory that I need to download?

Thanks!

3条回答
  •  一向
    一向 (楼主)
    2020-12-23 12:21

    Good information I was able to use. I tried:

    wget -r -l1 --no-parent http://www.domain.com/subdirectory/
    

    on a site that included multiple files of the form name.subname.subname2.etc.htm or .html. In order to pick these up I ran:

    wget -r --no-parent http://www.domain.com/subdirectory/
    

    and this worked fine.

提交回复
热议问题