2009/5/20 Randomcoder <[email protected]>:
> 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=user|comment|timestamp|content&revids=123456|481516
http://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop=user|comment|timestamp|content&rvstart=20090101000000&rvlimit=5&titles=Main_Page
(5 most recent revisions of Main Page before Jan 1, 2009).

Roan Kattouw (Catrope)

_______________________________________________
Mediawiki-api mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api

Reply via email to