Wget es un programa para descargar directamente desde las URL's sin tener que hacer click en ningún sitio.
En este caso os voy a enseñar como hacerlo, desde la terminal de ubuntu.
Para usar wget no es necesario descargar ningún programa, porque viene instalado predeterminadamente con ubuntu.
Su módulo de utilización es el de wget
Para comenzar os podéis leer el manual del programa escribiendo man wget
Para descargar un archivo, que es el objetivo de este tutorial debemos escribir en la terminal lo siguiente:
wget http://www.loudrex.blogspot.com
Además, para usuarios más avanzados, os dejo una lista de comandos:
-V, –version display the version of Wget and exit.
-h, –help print this help.
-b, –background go to background after startup.
-e, –execute=COMMAND execute a `.wgetrc’-style command.
-h, –help print this help.
-b, –background go to background after startup.
-e, –execute=COMMAND execute a `.wgetrc’-style command.
Logging and input file:
-o, –output-file=FILE log messages to FILE.
-a, –append-output=FILE append messages to FILE.
-d, –debug print lots of debugging information.
-q, –quiet quiet (no output).
-v, –verbose be verbose (this is the default).
-nv, –no-verbose turn off verboseness, without being quiet.
-i, –input-file=FILE download URLs found in FILE.
-F, –force-html treat input file as HTML.
-B, –base=URL prepends URL to relative links in -F -i file.
-o, –output-file=FILE log messages to FILE.
-a, –append-output=FILE append messages to FILE.
-d, –debug print lots of debugging information.
-q, –quiet quiet (no output).
-v, –verbose be verbose (this is the default).
-nv, –no-verbose turn off verboseness, without being quiet.
-i, –input-file=FILE download URLs found in FILE.
-F, –force-html treat input file as HTML.
-B, –base=URL prepends URL to relative links in -F -i file.
Download:
-t, –tries=NUMBER set number of retries to NUMBER (0 unlimits).
–retry-connrefused retry even if connection is refused.
-O, –output-document=FILE write documents to FILE.
-nc, –no-clobber skip downloads that would download to
existing files.
-c, –continue resume getting a partially-downloaded file.
–progress=TYPE select progress gauge type.
-N, –timestamping don’t re-retrieve files unless newer than
local.
-S, –server-response print server response.
–spider don’t download anything.
-T, –timeout=SECONDS set all timeout values to SECONDS.
–dns-timeout=SECS set the DNS lookup timeout to SECS.
–connect-timeout=SECS set the connect timeout to SECS.
–read-timeout=SECS set the read timeout to SECS.
-w, –wait=SECONDS wait SECONDS between retrievals.
–waitretry=SECONDS wait 1..SECONDS between retries of a retrieval.
–random-wait wait from 0…2*WAIT secs between retrievals.
–no-proxy explicitly turn off proxy.
-Q, –quota=NUMBER set retrieval quota to NUMBER.
–bind-address=ADDRESS bind to ADDRESS (hostname or IP) on local host.
–limit-rate=RATE limit download rate to RATE.
–no-dns-cache disable caching DNS lookups.
–restrict-file-names=OS restrict chars in file names to ones OS allows.
–ignore-case ignore case when matching files/directories.
-4, –inet4-only connect only to IPv4 addresses.
-6, –inet6-only connect only to IPv6 addresses.
–prefer-family=FAMILY connect first to addresses of specified family,
one of IPv6, IPv4, or none.
–user=USER set both ftp and http user to USER.
–password=PASS set both ftp and http password to PASS.
-t, –tries=NUMBER set number of retries to NUMBER (0 unlimits).
–retry-connrefused retry even if connection is refused.
-O, –output-document=FILE write documents to FILE.
-nc, –no-clobber skip downloads that would download to
existing files.
-c, –continue resume getting a partially-downloaded file.
–progress=TYPE select progress gauge type.
-N, –timestamping don’t re-retrieve files unless newer than
local.
-S, –server-response print server response.
–spider don’t download anything.
-T, –timeout=SECONDS set all timeout values to SECONDS.
–dns-timeout=SECS set the DNS lookup timeout to SECS.
–connect-timeout=SECS set the connect timeout to SECS.
–read-timeout=SECS set the read timeout to SECS.
-w, –wait=SECONDS wait SECONDS between retrievals.
–waitretry=SECONDS wait 1..SECONDS between retries of a retrieval.
–random-wait wait from 0…2*WAIT secs between retrievals.
–no-proxy explicitly turn off proxy.
-Q, –quota=NUMBER set retrieval quota to NUMBER.
–bind-address=ADDRESS bind to ADDRESS (hostname or IP) on local host.
–limit-rate=RATE limit download rate to RATE.
–no-dns-cache disable caching DNS lookups.
–restrict-file-names=OS restrict chars in file names to ones OS allows.
–ignore-case ignore case when matching files/directories.
-4, –inet4-only connect only to IPv4 addresses.
-6, –inet6-only connect only to IPv6 addresses.
–prefer-family=FAMILY connect first to addresses of specified family,
one of IPv6, IPv4, or none.
–user=USER set both ftp and http user to USER.
–password=PASS set both ftp and http password to PASS.
Directories:
-nd, –no-directories don’t create directories.
-x, –force-directories force creation of directories.
-nH, –no-host-directories don’t create host directories.
–protocol-directories use protocol name in directories.
-P, –directory-prefix=PREFIX save files to PREFIX/…
–cut-dirs=NUMBER ignore NUMBER remote directory components.
-nd, –no-directories don’t create directories.
-x, –force-directories force creation of directories.
-nH, –no-host-directories don’t create host directories.
–protocol-directories use protocol name in directories.
-P, –directory-prefix=PREFIX save files to PREFIX/…
–cut-dirs=NUMBER ignore NUMBER remote directory components.
No hay comentarios:
Publicar un comentario