API de MediaWiki/Allpages : Différence entre versions
De Wicri Outils
imported>Jacques Ducloy |
imported>Jacques Ducloy |
||
| Ligne 5 : | Ligne 5 : | ||
WIKI=https://lorexplor.istex.fr/Wicri/Sante/fr | WIKI=https://lorexplor.istex.fr/Wicri/Sante/fr | ||
curl "$WIKI/api.php?action=query&format=xml&list=allpages&apfrom=Paris" 2>nul \ | curl "$WIKI/api.php?action=query&format=xml&list=allpages&apfrom=Paris" 2>nul \ | ||
| + | | SxmlIndent | ||
| + | </source> | ||
| + | |||
| + | <source lang="sh"> | ||
| + | WIKI=https://lorexplor.istex.fr/Wicri/Sante/fr | ||
| + | curl "$WIKI/api.php?action=query&format=xml&list=allpages&apfrom=Paris" 2>nul \ | ||
| + | | SxmlSelect -g api/query -p @g1 \ | ||
| SxmlIndent | | SxmlIndent | ||
</source> | </source> | ||
Version du 14 juin 2020 à 10:05
API de MediaWiki, module Allpages
Le module Allpages de l'API de MediaWiki permet ...
WIKI=https://lorexplor.istex.fr/Wicri/Sante/fr
curl "$WIKI/api.php?action=query&format=xml&list=allpages&apfrom=Paris" 2>nul \
| SxmlIndent
WIKI=https://lorexplor.istex.fr/Wicri/Sante/fr
curl "$WIKI/api.php?action=query&format=xml&list=allpages&apfrom=Paris" 2>nul \
| SxmlSelect -g api/query -p @g1 \
| SxmlIndent
Voir aussi
- Liens externes
action=query&format=json&list=allpages&apfrom=jungle [try in ApiSandbox]