Projets:Transfert : Différence entre versions
De Médici
imported>Jacques Ducloy (→Fichiers) |
imported>Jacques Ducloy (→Divers) |
||
Ligne 13 : | Ligne 13 : | ||
==Divers== | ==Divers== | ||
+ | ( | ||
+ | curl "$WIKI/api.php5?action=query&list=allpages&format=xml&aplimit=100&apnamespace=1" 2>/dev/null | ||
+ | ) |SxmlSelect -s api/query/allpages/p/attribute::title -p @s1 | ||
+ | |||
+ | |||
( | ( | ||
curl "$WIKI/api.php5?action=query&list=allpages&format=xml&aplimit=100&apnamespace=2" 2>/dev/null | curl "$WIKI/api.php5?action=query&list=allpages&format=xml&aplimit=100&apnamespace=2" 2>/dev/null | ||
) |SxmlSelect -s api/query/allpages/p/attribute::title -p @s1 | ) |SxmlSelect -s api/query/allpages/p/attribute::title -p @s1 | ||
+ | |||
==Fichiers== | ==Fichiers== | ||
<source lang="sh"> | <source lang="sh"> |
Version du 24 mai 2019 à 23:25
Faits
- Sidebar OK
Outils shell
WIKI=http://medici.in2p3.fr/fr
WIKI_TARGET=https://lorexplor.istex.fr/Wicri/Europe/France/Medici/fr
curl "$WIKI/api.php5?action=query&meta=siteinfo&siprop=namespaces&format=xml" | SxmlIndent
curl "$WIKI_TARGET/api.php5?action=query&meta=siteinfo&siprop=namespaces&format=xml" | SxmlIndent
Divers
( curl "$WIKI/api.php5?action=query&list=allpages&format=xml&aplimit=100&apnamespace=1" 2>/dev/null ) |SxmlSelect -s api/query/allpages/p/attribute::title -p @s1
( curl "$WIKI/api.php5?action=query&list=allpages&format=xml&aplimit=100&apnamespace=2" 2>/dev/null ) |SxmlSelect -s api/query/allpages/p/attribute::title -p @s1
Fichiers
(
curl "$WIKI/api.php5?action=query&list=allpages&format=xml&aplimit=100&apnamespace=6" 2>/dev/null
) | head -4 |SxmlSelect -s api/query/allpages/p/attribute::title -p "wget http://medici.in2p3.fr/fr/images//@s1"
Installation des modèles
Pour vérifier la Job Queue
https://lorexplor.istex.fr/Wicri/Europe/France/Medici/fr/api.php?action=query&meta=siteinfo&siprop=statistics
Pour traiter :
php maintenance/runJobs.php