Advertisement
actual-batman

wget command line options

Mar 5th, 2017
748
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.67 KB | None | 0 0
  1. --accept=LIST -A comma-separated list of accepted extensions
  2. --accept-regex=REGEX regex matching accepted URLs
  3. --adjust-extension -E save HTML/CSS documents with proper extensions
  4. --append-output=FILE -a append messages to FILE
  5. --ask-password prompt for passwords
  6. --auth-no-challenge send Basic HTTP authentication information
  7. --background -b go to background after startup
  8. --backup-converted -K before converting file X| back up as X.orig
  9. --backups=N before writing file X| rotate up to N backup files
  10. --base=URL -B resolves HTML input-file links (-i -F)
  11. --bind-address=ADDRESS bind to ADDRESS (hostname or IP) on local host
  12. --body-data=STRING
  13. --body-file=FILE
  14. --ca-certificate=FILE file with the bundle of CAs
  15. --ca-directory=DIR directory where hash list of CAs is stored
  16. --certificate=FILE client certificate file
  17. --certificate-type=TYPE client certificate type| PEM or DER
  18. --config=FILE specify config file to use
  19. --connect-timeout=SECS set the connect timeout to SECS
  20. --content-disposition honor the Content-Disposition header when
  21. --content-on-error output the received content on server errors
  22. --continue -c resume getting a partially-downloaded file
  23. --convert-file-only convert the file part of the URLs only (usually known as the basename)
  24. --convert-links -k make links in downloaded HTML or CSS point to
  25. --crl-file=FILE file with bundle of CRLs
  26. --cut-dirs=NUMBER ignore NUMBER remote directory components
  27. --debug -d print lots of debugging information
  28. --default-page=NAME change the default page name (normally
  29. --delete-after delete files locally after downloading them
  30. --directory-prefix=PREFIX -P save files to PREFIX/..
  31. --dns-timeout=SECS set the DNS lookup timeout to SECS
  32. --domains=LIST -D comma-separated list of accepted domains
  33. --egd-file=FILE file naming the EGD socket with random data
  34. --exclude-directories=LIST -X list of excluded directories
  35. --exclude-domains=LIST comma-separated list of rejected domains
  36. --execute=COMMAND -e execute a `.wgetrc'-style command
  37. --follow-ftp follow FTP links from HTML documents
  38. --follow-tags=LIST comma-separated list of followed HTML tags
  39. --force-directories -x force creation of directories
  40. --force-html -F treat input file as HTML
  41. --ftp-password=PASS set ftp password to PASS
  42. --ftps-clear-data-connection cipher the control channel only; all the data will be in plaintext
  43. --ftps-fallback-to-ftp fall back to FTP if FTPS is not supported in the target server
  44. --ftps-implicit use implicit FTPS (default port is 990)
  45. --ftps-resume-ssl resume the SSL/TLS session started in the control connection when
  46. --ftp-user=USER set ftp user to USER
  47. --header=STRING insert STRING among the headers
  48. --help -h print this help
  49. --hsts-file path of HSTS database (will override default)
  50. --http-password=PASS set http password to PASS
  51. --https-only only follow secure HTTPS links
  52. --http-user=USER set http user to USER
  53. --ignore-case ignore case when matching files/directories
  54. --ignore-length ignore 'Content-Length' header field
  55. --ignore-tags=LIST comma-separated list of ignored HTML tags
  56. --include-directories=LIST -I list of allowed directories
  57. --inet4-only -4 connect only to IPv4 addresses
  58. --inet6-only -6 connect only to IPv6 addresses
  59. --input-file=FILE -i download URLs found in local or external FILE
  60. --keep-session-cookies load and save session (non-permanent) cookies
  61. --level=NUMBER -l maximum recursion depth (inf or 0 for infinite)
  62. --limit-rate=RATE limit download rate to RATE
  63. --load-cookies=FILE load cookies from FILE before session
  64. --local-encoding=ENC use ENC as the local encoding for IRIs
  65. --max-redirect maximum redirections allowed per page
  66. --method d STRING as data. --method MUST be set
  67. --method end contents of FILE. --method MUST be set
  68. --method=HTTPMethod use method "HTTPMethod" in the request
  69. --mirror
  70. --no-cache disallow server-cached data
  71. --no-check-certificate don't validate the server's certificate
  72. --no-clobber -nc skip downloads that would download to
  73. --no-config do not read any config file
  74. --no-cookies don't use cookies
  75. --no-directories -nd don't create directories
  76. --no-dns-cache disable caching DNS lookups
  77. --no-glob turn off FTP file name globbing
  78. --no-host-directories -nH don't create host directories
  79. --no-hsts disable HSTS
  80. --no-http-keep-alive disable HTTP keep-alive (persistent connections)
  81. --no-if-modified-since don't use conditional if-modified-since get
  82. --no-iri turn off IRI support
  83. --no-parent -np don't ascend to the parent directory
  84. --no-passive-ftp disable the "passive" transfer mode
  85. --no-proxy explicitly turn off proxy
  86. --no-remove-listing don't remove '.listing' files
  87. --no-remove-listing -m hortcut for -N -r -l inf --no-remove-listing
  88. --no-use-server-timestamps n't set the local file's timestamp by
  89. --no-verbose -nv turn off verboseness| without being quiet
  90. --no-warc-compression do not compress WARC files with GZIP
  91. --no-warc-digests do not calculate SHA1 digests
  92. --no-warc-keep-log do not store the log file in a WARC record
  93. --output-document=FILE -O write documents to FILE
  94. --output-file=FILE -o log messages to FILE
  95. --page-requisites -p get all images| etc. needed to display HTML page
  96. --password=PASS set both ftp and http password to PASS
  97. --post-data=STRING use the POST method; send STRING as the data
  98. --post-file=FILE use the POST method; send contents of FILE
  99. --prefer-family=FAMILY connect first to addresses of specified family|
  100. --preserve-permissions preserve remote file permissions
  101. --private-key=FILE private key file
  102. --private-key-type=TYPE private key type| PEM or DER
  103. --progress=TYPE select progress gauge type
  104. --protocol-directories use protocol name in directories
  105. --proxy-password=PASS set PASS as proxy password
  106. --proxy-user=USER set USER as proxy username
  107. --quiet -q quiet (no output)
  108. --quota=NUMBER -Q set retrieval quota to NUMBER
  109. --random-file=FILE file with random data for seeding the SSL PRNG
  110. --random-wait wait from 0.5*WAIT...1.5*WAIT secs between retrievals
  111. --read-timeout=SECS set the read timeout to SECS
  112. --recursive -r specify recursive download
  113. --referer=URL include 'Referer: URL' header in HTTP request
  114. --regex-type=TYPE regex type (posix|pcre)
  115. --rejected-log=FILE log reasons for URL rejection to FILE
  116. --reject=LIST -R comma-separated list of rejected extensions
  117. --reject-regex=REGEX regex matching rejected URLs
  118. --relative -L follow relative links only
  119. --remote-encoding=ENC use ENC as the default remote encoding
  120. --report-speed=TYPE output bandwidth as TYPE. TYPE can be bits
  121. --restrict-file-names=OS restrict chars in file names to ones OS allows
  122. --retr-symlinks when recursing| get linked-to files (not dir)
  123. --retry-connrefused retry even if connection is refused
  124. --save-cookies=FILE save cookies to FILE after session
  125. --save-headers save the HTTP headers to file
  126. --secure-protocol=PR choose secure protocol| one of auto| SSLv2|
  127. --server-response -S print server response
  128. --show-progress display the progress bar in any verbosity mode
  129. --span-hosts -H go to foreign hosts when recursive
  130. --spider don't download anything
  131. --start-pos=OFFSET start downloading from zero-based position OFFSET
  132. --strict-comments turn on strict (SGML) handling of HTML comments
  133. --timeout=SECONDS -T set all timeout values to SECONDS
  134. --timestamping -N don't re-retrieve files unless newer than
  135. --tries=NUMBER -t set number of retries to NUMBER (0 unlimits)
  136. --trust-server-names use the name specified by the redirection
  137. --unlink remove file before clobber
  138. --user-agent=AGENT -U identify as AGENT instead of Wget/VERSION
  139. --user=USER set both ftp and http user to USER
  140. --verbose -v be verbose (this is the default)
  141. --version -V display the version of Wget and exit
  142. --waitretry=SECONDS wait 1..SECONDS between retries of a retrieval
  143. --wait=SECONDS -w wait SECONDS between retrievals
  144. --warc-cdx write CDX index files
  145. --warc-dedup=FILENAME do not store records listed in this CDX file
  146. --warc-file=FILENAME save request/response data to a .warc.gz file
  147. --warc-header=STRING insert STRING into the warcinfo record
  148. --warc-max-size=NUMBER set maximum size of WARC files to NUMBER
  149. --warc-tempdir=DIRECTORY location for temporary files created by the
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement