Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3260

General Questions • [Software] wget2 interprets command-line options as URL's

$
0
0
Hello. :)

I want to download manual from Web.
I.e. all html files in https://dev.overpass-api.de/overpass-doc/en/ an in its sub-directories and nothing else.
I have tried this my wget2.sh script:

Code:

#!/usr/bin/sh/usr/bin/wget2  ‐‐debug  --verbose                                          \  --recursive  ‐‐filter‐urls  ‐‐regex‐type=pcre  --wait=5                   \  ‐‐accept‐regex='^https://dev\.overpass-api\.de/overpass-doc/en/.*\.html$' \  --reject-regex='^(?!https://dev\.overpass-api\.de/overpass-doc/en/).*'    \  --  'https://dev.overpass-api.de/overpass-doc/en/'
but I have got these errors in output:

Code:

./wget2.shtoASCII(‐‐regex‐type=pcre) failed (-314): A-label roundtrip failedtoASCII(‐‐regex‐type=pcre) failed (-314): A-label roundtrip failedtoASCII(‐‐accept‐regex=^https) failed (-314): A-label roundtrip failedtoASCII(‐‐accept‐regex=^https) failed (-314): A-label roundtrip failedFailed to resolve ‐‐regex‐type=pcre (Name or service not known)Failed to resolve ‐‐accept‐regex=^https (Name or service not known)Failed to resolve xn--debug-fu3ba (Temporary failure in name resolution)Failed to resolve xn--filterurls-pt6eag (Temporary failure in name resolution)Failed to resolve ‐‐regex‐type=pcre (Name or service not known)Failed to resolve ‐‐accept‐regex=^https (Name or service not known)Failed to resolve xn--debug-fu3ba (Temporary failure in name resolution)Failed to resolve xn--filterurls-pt6eag (Temporary failure in name resolution)Failed to resolve ‐‐regex‐type=pcre (Name or service not known)Failed to resolve ‐‐accept‐regex=^https (Name or service not known)Failed to resolve xn--debug-fu3ba (Temporary failure in name resolution)Failed to resolve xn--filterurls-pt6eag (Temporary failure in name resolution)[3] Downloading 'https://dev.overpass-api.de/robots.txt' ...
Please, what is wrong in my code? Why does it interpret my options as URL's? :?
[I have tried to find NBSP character (code 0xA0), but nothing has been found in the script.]

Statistics: Posted by ruwolf — 2024-01-30 05:17 — Replies 0 — Views 13



Viewing all articles
Browse latest Browse all 3260

Trending Articles