我遵循了在这篇文章中下载博客文章,仅此而已,没有外部链接,但递归功能似乎不起作用,因为只下载了索引文件。有什么建议吗?
$ wget --recursive --page-requisites --html-extension --convert-links --restrict-file-names=windows --domains https://bestblog.wordpress.com/ https://bestblog.wordpress.com/
--2018-07-21 10:26:35-- https://bestblog.wordpress.com/
Resolving bestblog.wordpress.com (bestblog.wordpress.com)... 192.0.78.13, 192.0.78.12
Connecting to bestblog.wordpress.com (bestblog.wordpress.com)|192.0.78.13|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘bestblog.wordpress.com/index.html’
bestblog.wordpress. [ <=> ] 65.36K --.-KB/s in 0.09s
2018-07-21 10:26:36 (729 KB/s) - ‘bestblog.wordpress.com/index.html’ saved [66929]
FINISHED --2018-07-21 10:26:36--
Total wall clock time: 0.4s
Downloaded: 1 files, 65K in 0.09s (729 KB/s)
Converting links in bestblog.wordpress.com/index.html... 6-25
Converted links in 1 files in 0.002 seconds.
答案1
您应该指定--domains
不带方案的标志:
--domains bestblog.wordpress.com