info:wget

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
info:wget [2018/11/29 09:16] – radeffinfo:wget [2021/11/18 06:48] (Version actuelle) – radeff
Ligne 1: Ligne 1:
 ====== wget ====== ====== wget ======
 +un peu out of date, utiliser de préférence [[httrack]]
 <note tip> <note tip>
 Archive statique HTML Archive statique HTML
Ligne 213: Ligne 214:
   wget -mk http://votresite.org   wget -mk http://votresite.org
  
- 
-====== httrack ====== 
- 
-Voir aussi [[http://www.httrack.com/html/fcguide.html|httrack]] 
- 
- 
-   httrack http://LOCAL_URI -O . -N "%h%p/%n/index%[page].%t" -cWqQ%v --robots=0 
- 
-puis 
- 
-   find . -name "*.html" -type f -print0 |   xargs -0 perl -i -pe "s/\/index.html/\//g" 
- 
-source: cet excellent article sur un archivage drupal, [[https://www.lullabot.com/articles/sending-a-drupal-site-into-retirement]] 
- 
-Un petit script tout en un pour faire: 
-<code bash> 
-#!/usr/bin/bash 
-#author: fradeff@akademia.ch, https://radeff.red/dokuwiki/info:wget 
-echo "Create static website" 
-echo "URL of the website" 
-read url 
-httrack $url -O . -N "%h%p/%n/index%[page].%t" -cWqQ%v --robots=0 
-find . -name "*.html" -type f -print0 |   xargs -0 perl -i -pe "s/\/index.html/\//g" 
-echo "Finished!" 
-</code> 
- 
-Voir aussi 
- 
-https://www.httrack.com/html/filters.html 
- 
-http://konradpodgorski.com/blog/2013/10/20/how-to-recursively-download-an-entire-website-using-wget/ 
  • info/wget.1543479410.txt.gz
  • Dernière modification : 2018/11/29 09:16
  • de radeff