Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| info:linkchecker [2021/01/15 05:39] – créée radeff | info:linkchecker [2025/11/06 09:38] (Version actuelle) – radeff | ||
|---|---|---|---|
| Ligne 5: | Ligne 5: | ||
| LinkChecker is a free, GPL licensed URL validator. | LinkChecker is a free, GPL licensed URL validator. | ||
| - | http://wummel.github.io/ | + | https://github.com/wummel/ |
| - | **Exemple** | + | ===== Exemple |
| - | | + | ==== rendu html ==== |
| - | + | <code bash> | |
| - | -oTYPE[/ | + | linkchecker https:// |
| + | </ | ||
| + | ==== rendu csv ==== | ||
| + | <code bash> | ||
| + | | ||
| + | </ | ||
| + | ==== autres options ==== | ||
| + | <code bash> | ||
| + | -o TYPE[/ | ||
| Specify output type as text, html, sql, csv, gml, dot, xml, sitemap, none or blacklist. Default type is text. The various output types are documented below. | Specify output type as text, html, sql, csv, gml, dot, xml, sitemap, none or blacklist. Default type is text. The various output types are documented below. | ||
| The ENCODING specifies the output encoding, the default is that of your locale. Valid encodings are listed at http:// | The ENCODING specifies the output encoding, the default is that of your locale. Valid encodings are listed at http:// | ||
| | | ||
| use --check-extern to check extern URLs. | use --check-extern to check extern URLs. | ||
| + | </ | ||
| - | | + | <note warning> |
| - | **Doc** | + | Par défaut, linkchecker lance une récursion infinie... Si votre site est gros, cela peut vite devenir une sacrée usine à gaz et méchamment charger votre serveur: |
| + | |||
| + | <code bash> | ||
| + | -rNUMBER, --recursion-level=NUMBER | ||
| + | Check recursively all links up to given depth. A negative depth will enable infinite recursion. Default depth is infinite. | ||
| + | </ | ||
| + | |||
| + | ==== Pour limiter à un seul namespace (liens internes) ==== | ||
| + | |||
| + | === solution 1 === | ||
| + | on va ici vérifier uniquement les liens de type www.monsite.ch/ | ||
| + | |||
| + | <code bash> | ||
| + | linkchecker \ | ||
| + | --check-extern \ | ||
| + | --ignore-url=" | ||
| + | --ignore-url=" | ||
| + | --no-status \ | ||
| + | --verbose \ | ||
| + | https:// | ||
| + | </ | ||
| + | === solution 2 === | ||
| + | utiliser l' | ||
| - | http://linkchecker.sourceforge.net/man1/linkchecker.1.html | + | |