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

后端 未结 8 861
陌清茗
陌清茗 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).

    0 讨论(0)
  • 2020-12-12 14:27

    I know that this thread is old, but try what is mentioned by Ritesh with:

    --no-cookies

    It worked for me!

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