mirror of
https://github.com/WikiTeam/wikiteam
synced 2024-11-04 12:00:28 +00:00
adding API support
git-svn-id: https://wikiteam.googlecode.com/svn/trunk@46 31edc4fc-5e31-b4c4-d58b-c8bc928bcb95
This commit is contained in:
parent
c7f01c3b7a
commit
7678c923ee
@ -89,7 +89,7 @@ def getPageTitlesAPI(config={}):
|
||||
headers = {'User-Agent': getUserAgent()}
|
||||
apfrom = '!'
|
||||
while apfrom:
|
||||
params = {'action': 'query', 'list': 'allpages', 'apfrom': apfrom, 'format': 'xml', 'aplimit': 500}
|
||||
params = {'action': 'query', 'list': 'allpages', 'apnamespace': namespace, 'apfrom': apfrom, 'format': 'xml', 'aplimit': 500}
|
||||
data = urllib.urlencode(params)
|
||||
req = urllib2.Request(url=config['api'], data=data, headers=headers)
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user