Hi Roan,
thanks a lot for your quick answer. But it seems like i donīt get it working.
When I try this:
http://en.wikinews.org/w/api.php?action=query&generator=links&gplnamespace=0&gpllimit=50&export&exportnowrap&titles=UK_government_plans_to_replace_House_of_Lords_with_elected_chamber
it wonīt export any of the links. Where am I wrong?
Sascha Bonnemann
2010/3/17 Sascha Bonnemann <sascha.bonnemann@googlemail.com>:
There is an option to export linked pages to a given depth in> Hi everybody,
>
> iīm trying to export a complete Wikinews article in XML format. I found this
> feature here:
> http://en.wikinews.org/wiki/Special:Export
> This allows you to extract a page in XML, which is already pretty cool, but:
> this function doesnīt export the related articles which are shown in the
> infobox on the right.
> Any idea how to solve this problem? I didnīt found an appropriate function
> or parameter in the API (http://en.wikinews.org/w/api.php)
> Perhaps someone could help me, that would be very nice! :)
>
Special:Export, but this is only enabled for privileged users on
Wikipedia right now. You can achieve mostly the same effect using the
API with:
http://en.wikinews.org/w/api.php?action=query&generator=links&gplnamespace=0&gpllimit=50&export&exportnowrap&titles=Your_title_here
This'll find the first 50 links on [[Your title here]] pointing to
pages in the main namespace and export them.
Roan Kattouw (Catrope)
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api