parsing wikimedia api

IceDragon

New Member
I need your help. I'm parsing wikipedia article and using Wikimedia api. I want to read the text between \[code\]{{ }}\[/code\]. Here is my wikimedia api query. I tried but not found any luck. can any one please help me ? thank you so much.\[code\]def getCategory(title):paramsd = {'action': 'query', 'prop': 'revisions', 'rvprop': 'content', 'format': 'xmlfm', 'rvsection': 0,'titles':title}params = urllib.urlencode(paramsd)req = urllib2.Request(url='http://en.wikipedia.org/w/api.php', data=http://stackoverflow.com/questions/8022407/params)f = urllib2.urlopen(req)\[/code\]
 
Top