Hello!
Refering to http://fr.wikipedia.org/w/api.php?action=query&generator=exturlusage&... :
I would expect a extlinks element nested in each page element, since each page has at least a *.yu link ... Here, only a single <page> element provides the extlinks element.
Am I missing something big here, or is this a nice bug ?
Thanks,
You should continue the query with the "eloffset", and it will show them for other pages. As the default limit is 10, you are getting 10 pages from the generator, and then the 1st 10 external links within those pages.
Add "ellimit=500" and you'll get happier results. But your code should always continue with the eloffset until it doesn't get that, and then with the "geuoffset".
Robert
On Fri, Feb 20, 2009 at 12:38 PM, Nicolas Dumazet nicdumz@gmail.com wrote:
Hello!
Refering to http://fr.wikipedia.org/w/api.php?action=query&generator=exturlusage&... :
I would expect a extlinks element nested in each page element, since each page has at least a *.yu link ... Here, only a single <page> element provides the extlinks element.
Am I missing something big here, or is this a nice bug ?
Thanks,
-- Nicolas Dumazet — NicDumZ [ nɪk.d̪ymz ]
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
oh, I see. The fact that only the last entry would get its external links displayed confused me.
Thanks for the answer =)
2009/2/20 Robert Ullmann rlullmann@gmail.com:
You should continue the query with the "eloffset", and it will show them for other pages. As the default limit is 10, you are getting 10 pages from the generator, and then the 1st 10 external links within those pages.
Add "ellimit=500" and you'll get happier results. But your code should always continue with the eloffset until it doesn't get that, and then with the "geuoffset".
Robert
On Fri, Feb 20, 2009 at 12:38 PM, Nicolas Dumazet nicdumz@gmail.com wrote:
Hello!
Refering to http://fr.wikipedia.org/w/api.php?action=query&generator=exturlusage&... :
I would expect a extlinks element nested in each page element, since each page has at least a *.yu link ... Here, only a single <page> element provides the extlinks element.
Am I missing something big here, or is this a nice bug ?
Thanks,
-- Nicolas Dumazet — NicDumZ [ nɪk.d̪ymz ]
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
mediawiki-api@lists.wikimedia.org