Hello
I'm trying to use the Special:Export to export certain revisions of files. I've tried the code written in these pages http://www.mediawiki.org/wiki/Manual_talk:Parameters_to_Special:Export http://www.mediawiki.org/wiki/Manual:Parameters_to_Special:Export It seems I can only get either the most current one , or all of the revisions. I need to take exactly some particular set of consecutive revisions starting from a date or an id number. Is that possible ?
I've also taken a look at the page here describing the API of mediawiki http://en.wikipedia.org/w/api.php
export - Export the current revisions of all given or generated pages exportnowrap - Return the export XML without wrapping it in an XML result (same format as Special:Export). Can only be used with export
This seems to again emphasize that it's not possible. Is this true , it's not possible to get to some particular revisions inside an article through the API ?
Thank you, Stefan
2009/5/20 Randomcoder randomcoder1@gmail.com:
Hello
I'm trying to use the Special:Export to export certain revisions of files. I've tried the code written in these pages http://www.mediawiki.org/wiki/Manual_talk:Parameters_to_Special:Export http://www.mediawiki.org/wiki/Manual:Parameters_to_Special:Export It seems I can only get either the most current one , or all of the revisions. I need to take exactly some particular set of consecutive revisions starting from a date or an id number. Is that possible ?
I've also taken a look at the page here describing the API of mediawiki http://en.wikipedia.org/w/api.php
export - Export the current revisions of all given or generated pages exportnowrap - Return the export XML without wrapping it in an XML result (same format as Special:Export). Can only be used with export
This seems to again emphasize that it's not possible. Is this true , it's not possible to get to some particular revisions inside an article through the API ?
It's possible to get them, just not in export XML format. You can get them the 'usual' way with e.g.
http://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop... http://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop... (5 most recent revisions of Main Page before Jan 1, 2009).
Roan Kattouw (Catrope)
Roan Kattouw wrote:
It's possible to get them, just not in export XML format. You can get them the 'usual' way with e.g.
http://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop... http://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop... (5 most recent revisions of Main Page before Jan 1, 2009).
this seems to give the 5 revisions exactly before rvstart is this true ? can you give a link to the api ?
2009/5/20 Randomcoder randomcoder1@gmail.com:
Roan Kattouw wrote:
It's possible to get them, just not in export XML format. You can get them the 'usual' way with e.g.
http://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop... http://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop... (5 most recent revisions of Main Page before Jan 1, 2009).
this seems to give the 5 revisions exactly before rvstart is this true ?
Yes, the 5 most recent revisions made before *or on* rvstart.
can you give a link to the api ?
Summary API docs guaranteed to be up to date: http://en.wikipedia.org/w/api.php Extensive docs that may be a bit out of date: http://www.mediawiki.org/wiki/API
Roan Kattouw (Catrope)
mediawiki-api@lists.wikimedia.org