如何下载网址html中的链接? [英] How to download links in the html of a url?
本文介绍了如何下载网址html中的链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
例如,当我在浏览器中打开 https://stackoverflow.com/ 时,浏览器不仅会下载主页,还会下载还图像,js,css。
For example, when I open https://stackoverflow.com/ in browser, the browser will download not only the main page, but also images, js, css.
但是当我执行 curl https://stackoverflow.com/
时,只会下载主页html。 $ b是否有 curl
或 wget
的选项也可以下载images / js / css?
But when I do curl https://stackoverflow.com/
, only the main page html is downloaded. Is there any options of curl
or wget
that can download images/js/css also?
或任何其他工具都可以做到这一点?
Or any other tools can do this?
推荐答案
wget- r
将保存所有内容
wget -r www.your-site.com
这篇关于如何下载网址html中的链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文