我想下载带有网站的wget
的所有页面(带有嵌套链接)。我尝试了以下命令:
wget --reject php,xml --exclude-domains https://motamem.org/wp-content/plugins/ProProfile/ajax/upme-get-avatar.php?email=' + new_user_email,https://motamem.org/wp-admin/admin-ajax.php,https://wprp.sovrn.com/static/,https:\/\/motamem.org\/wp-admin\/admin-ajax.php,https://motamem.org/xmlrpc.php,https://motamem.org/feed/,https://motamem.org/wp-includes/wlwmanifest.xml,https://motamem.org/xmlrpc.php?rsd,https://motamem.org/wp-json/ -U "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36" -mkEpnp -l10 -e robots=off --page-requisites --html-extension --adjust-extension --convert-links https://motamem.org/
但有了这些问题:
index.html
。-mkEpnp
选项,但链接不是相对的。发布于 2021-05-21 05:46:09
试一试
wget -r -镜像-页面-必要条件-转换链接-跨度-主机-U mozilla -F http://example.com
发布于 2022-09-27 14:03:56
尝试这个命令,我们可以轻松地从WordPress下载所有文件。
wget --mirror --page-requisites --convert-link --no-clobber --no-parent --domains yoursite.com https://yoursite.com/
发布于 2022-11-29 23:44:00
我还没有幸运地用wget下载PHP (有效的Wordpress)网站,但我对httrack (例如在Ubuntu上)很幸运:
sudo apt install httrack
httrack 'your website here'
https://stackoverflow.com/questions/65596375
复制相似问题