API de MediaWiki/Allpages : Différence entre versions
De Wicri Outils
imported>Jacques Ducloy |
imported>Jacques Ducloy |
||
| Ligne 11 : | Ligne 11 : | ||
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 \ | ||
| − | | SxmlSelect -g api/query -p @g1 \ | + | | SxmlSelect -g api/query/allpages -p @g1 \ |
| SxmlIndent | | SxmlIndent | ||
</source> | </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 -s api/query/allpages/p -p @s1 \ | ||
| + | | SxmlIndent | ||
| + | </source> | ||
| + | |||
==Voir aussi== | ==Voir aussi== | ||
;Liens externes: | ;Liens externes: | ||
Version du 14 juin 2020 à 10:07
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/allpages -p @g1 \
| SxmlIndent
WIKI=https://lorexplor.istex.fr/Wicri/Sante/fr
curl "$WIKI/api.php?action=query&format=xml&list=allpages&apfrom=Paris" 2>nul \
| SxmlSelect -s api/query/allpages/p -p @s1 \
| SxmlIndent
Voir aussi
- Liens externes
action=query&format=json&list=allpages&apfrom=jungle [try in ApiSandbox]