소스 검색

wget : add some options (#2798)

saeed 6 년 전
부모
커밋
558edac53e
1개의 변경된 파일10개의 추가작업 그리고 10개의 파일을 삭제
  1. 10 10
      pages/common/wget.md

+ 10 - 10
pages/common/wget.md

@@ -11,26 +11,26 @@
 
 `wget -O {{bar}} {{https://example.com/foo}}`
 
-- Download a single web page and all its resources (scripts, stylesheets, images, etc.):
+- Download a single web page and all its resources with 3-second intervals between requests (scripts, stylesheets, images, etc.):
 
-`wget --page-requisites --convert-links {{https://example.com/somepage.html}}`
-
-- Download a full website, with 3-second intervals between requests:
-
-`wget --mirror --page-requisites --convert-links --wait=3 {{https://example.com}}`
+`wget --page-requisites --convert-links --wait=3 {{https://example.com/somepage.html}}`
 
 - Download all listed files within a directory and its sub-directories (does not download embedded page elements):
 
 `wget --mirror --no-parent {{https://example.com/somepath/}}`
 
-- Download the contents of an URL via authenticated FTP:
+- Limit the download speed and the number of connection retries:
+
+`wget --limit-rate={{300k}} --tries={{100}} {{https://example.com/somepath/}}`
+
+- Download a file from an HTTP server using Basic Auth (also works for FTP):
 
-`wget --ftp-user={{username}} --ftp-password={{password}} {{ftp://example.com}}`
+`wget --user={{username}} --password={{password}} {{https://example.com}}`
 
 - Continue an incomplete download:
 
 `wget -c {{https://example.com}}`
 
-- Enable quiet mode to suppress output:
+- Download all URLs stored in a text file to a specific directory:
 
-`wget -q {{https://example.com}}`
+`wget -P {{path/to/directory}} -i {{URLs.txt}}`