Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dumpgenerator.py should save detailed siteinfo #97

Open
GoogleCodeExporter opened this issue Apr 24, 2016 · 3 comments
Open

dumpgenerator.py should save detailed siteinfo #97

GoogleCodeExporter opened this issue Apr 24, 2016 · 3 comments

Comments

@GoogleCodeExporter
Copy link

For wikis with API, we need to save https://www.mediawiki.org/wiki/Siteinfo 
data (1.8+), as rightly reminded by Thingles 
(<https://groups.google.com/d/msg/wikiteam-discuss/muaIxbLElDM/9nEH6P6lA_MJ>). 
It's available since the very first releases with api.php 
(<https://www.mediawiki.org/wiki/MediaWiki_1.8#MediaWiki_1.8.1>), so we can fix 
issue 48 at the same time.

A real must are interwikimap (1.11+), namespacealiases (1.13), skins (1.18+) 
and extensions (includes revisions as of 1.23+); nice to have (mostly 
duplicates of stuff we already save) are specialpagealiases, namespaces, 
magicwords, general, rightsinfo, statistics.

I consider higher priority those available in older releases and those needed 
to parse links or wikitext in general. However bytes are cheap and unrecognised 
parameters just add a warning, so we can ask everything and avoid worrying.
Example from 
<http://www.veikkos-archiv.com/api.php?action=query&meta=siteinfo&siprop=interwi
kimap|namespacealiases|skins|extensions|specialpagealiases|namespaces|magicwords
|general|rightsinfo|statistics>:
<api>
  <warnings>
    <siteinfo xml:space="preserve">Unrecognized value for parameter 'siprop': skins</siteinfo>
  </warnings>

Original issue reported on code.google.com by [email protected] on 2 Feb 2014 at 7:42

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 2 Feb 2014 at 7:43

@GoogleCodeExporter
Copy link
Author

namespaces is supported in 1.9, I suppose 1.8 too if docs are not wrong. 
http://www.xdmf.org/api.php?action=query&meta=siteinfo&siprop=namespaces&maxlag=
5

Original comment by [email protected] on 27 Feb 2014 at 1:14

@GoogleCodeExporter
Copy link
Author

Ah! But fails badly in earlier versions, e.g. 
<http://www.sci-mate.org/wiki/api.php?action=query&meta=siteinfo&siprop=interwik
imap|namespacealiases|skins|extensions|specialpagealiases|namespaces|magicwords|
general|rightsinfo|statistics>:   <error code="siunknown_siprop" 
info="Unrecognised values for parameter 'siprop'">

Original comment by [email protected] on 27 Feb 2014 at 1:34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant