Ir al contenido
  • +31 653-919-302
Cafayate.Net
  • 0
  • 0
  • Inicia sesión
  • Nederlands English (US) Español (AR)
  • Contáctanos
  • Inicio
  • Blog
  • Empleos
  • Contáctanos
Cafayate.Net
  • 0
  • 0
    • Inicio
    • Blog
    • Empleos
    • Contáctanos
  • +31 653-919-302
  • Nederlands English (US) Español (AR)
  • Inicia sesión
  • Contáctanos

Wget a copy of the whole website

  • Todos los blogs
  • Tech Blog
  • Wget a copy of the whole website
  • 5 de marzo de 2021 por
    Administrator

    Example :
    wget -U “Mozilla/5.0 (X11; U; Linux; en-US; rv:1.9.1.16) Gecko/20110929 Firefox/3.5.16” \
    –recursive –level=1 –no-clobber –page-requisites –html-extension \
    –convert-links –no-parent \
    –wait=3 –random-wait \
    http://www.rotterdam-tours.com/ –domains=www.rotterdam-tours.com

     
    Basic arguments
    These are the basic arguments needed to perform the recursive download.

    –recursive
    Tells wget to recursively download pages, starting from the specified URL.
    –level=1
    Tells wget to stop after one level of recursion. This can be changed to download more deeply, or set to 0 that means “no limit”
    –no-clobber
    Skip downloads that would download to existing files
    –page-requisites
    Tells wget to download all the resources (images, css, javascript, …) that are needed for the page to work.
    –html-extension
    Adds ”.html” extension to downloaded files, with the double purpose of making the browser recognize them as html files and solving naming conflicts for “generated” URLs, when there are no directories with “index.html” but just a framework that responds dynamically with generated pages.
    –convert-links
    After the download is complete, convert the links in the document to make them suitable for local viewing. This affects not only the visible hyperlinks, but any part of the document that links to external content, such as embedded images, links to style sheets, hyperlinks to non-HTML content, etc.
    –no-parent
    Do not ever ascend to the parent directory when retrieving recursively.
    –domains=www.example.com
    Set domains to be followed. DOMAIN-LIST is a comma-separated list of domains.
    Avoiding imposed download limits
    Many web servers tend to limit the pages a user can download in a given amount of time, or the user-agents that can access given pages, etc. To avoid such limits, some extra options may be added.

    -U “Mozilla/5.0 (X11; U; Linux; en-US; rv:1.9.1.16) Gecko/20110929 Firefox/3.5.16”
    Tells wget to use a fake user-agent, to emulate the one of a web browser (in this case, Firefox 3.5 on Linux)
    –wait=3
    Tells wget to wait at least 3 seconds between retrievals.
    –random-wait
    Tells wget to wait a random time between 0 and double the value specified with –wait between requests.

    en Tech Blog
    Setup NFS server on ubuntu 14.04

    Diseñado para empresas

    Somos un equipo de personas apasionadas cuyo objetivo es mejorar la vida de todos a través de productos revolucionarios. Creamos grandes productos para resolver sus problemas empresariales. Nuestros productos están diseñados para pequeñas y medianas empresas dispuestas a optimizar su rendimiento.

    Contáctenos

    Plantexel
    Pedernera
    Salta Capital 
    Argenina

    • +31 653-919-302
    • [email protected]
    Síganos
    Copyright © Plantexel
    Nederlands | English (US) | Español (AR)