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&gplnam...
it won´t export any of the links. Where am I wrong?
Sascha Bonnemann
2010/3/17 Roan Kattouw roan.kattouw@gmail.com
2010/3/17 Sascha Bonnemann sascha.bonnemann@googlemail.com:
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! :)
There is an option to export linked pages to a given depth in 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&gplnam...
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