What's the best way to save a complete webpage on a linux server?

前端 未结 4 865
挽巷
挽巷 2021-01-31 20:57

I need to archive complete pages including any linked images etc. on my linux server. Looking for the best solution. Is there a way to save all assets and then relink them all t

4条回答
  •  余生分开走
    2021-01-31 21:24

    wget -r http://yoursite.com
    

    Should be sufficient and grab images/media. There are plenty of options you can feed it.

    Note: I believe wget nor any other program supports downloading images specified through CSS - so you may need to do that yourself manually.

    Here may be some useful arguments: http://www.linuxjournal.com/content/downloading-entire-web-site-wget

提交回复
热议问题