wget failed: Connection timed out
Solution 1:
Please read the fine manual about the "risks" of using the --span-hosts
(-H
) option and how to limit those by adding restrictions:
https://www.gnu.org/software/wget/manual/wget.html#Spanning-Hosts
The
--span-hosts
or-H
option turns on host spanning, thus allowing Wget’s recursive run to visit any host referenced by a link. Unless sufficient recursion-limiting criteria are applied, these foreign hosts will typically link to yet more hosts, and so on until Wget ends up sucking up much more data than you have intended.
...
Limit spanning to certain domains
-D
The-D
option allows you to specify the domains that will be followed, thus limiting the recursion only to the hosts that belong to these domains.
...
Keep download off certain domains
--exclude-domains
If there are domains you want to exclude specifically, you can do it with--exclude-domains
, which accepts the same type of arguments of-D
, but will exclude all the listed domains.