Why does wget only download the index.html for some websites?

后端 未结 8 938
陌清茗
陌清茗 2020-12-12 13:29

I\'m trying to use wget command:

wget -p http://www.example.com 

to fetch all the files on the main page. For some websites it works but i

8条回答
  •  孤城傲影
    2020-12-12 14:22

    Another problem might be that the site you're mirroring uses links without www. So if you specify

    wget -p -r http://www.example.com

    it won't download any linked (intern) pages because they are from a "different" domain. If this is the case then use

    wget -p -r http://example.com

    instead (without www).

提交回复
热议问题