Can't get data of a problematic section with Wikipedia API -
i'd contents of "goalscorers" section wikipedia page http://en.wikipedia.org/wiki/2014_fifa_world_cup#goalscorers. used command
http://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles=2014_fifa_world_cup&rvprop=content&rvsection=32 but empty section:
<?xml version="1.0"?> <api> <query> <normalized> <n from="2014_fifa_world_cup" to="2014 fifa world cup" /> </normalized> <pages> <page pageid="656933" ns="0" title="2014 fifa world cup"> <revisions> <rev contentformat="text/x-wiki" contentmodel="wikitext" xml:space="preserve">===goalscorers=== {{2014 fifa world cup goalscorers}}</rev> </revisions> </page> </pages> </query> </api> how can actual info of section wikipedia api?
it's not empty section, it's section contains 2014 fifa world cup goalscorers template. need template's content: http://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles=template:2014%20fifa%20world%20cup%20goalscorers&rvprop=content oh shi~~, it's redirect template called 2014 fifa world cup goalscorers (note difference!), need content too: http://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles=template:2014%20fifa%20world%20cup%20goalscorers&rvprop=content
wikipedia-api
No comments:
Post a Comment