another case of subpages in allpages

git-svn-id: https://wikiteam.googlecode.com/svn/trunk@42 31edc4fc-5e31-b4c4-d58b-c8bc928bcb95
pull/117/head
emijrp 13 years ago
parent fe94af27c7
commit 3e67420d92

@ -118,11 +118,12 @@ def getPageTitles(config={}, start='!'):
name = '%s-%s' % (fr, to)
url = '%s?title=Special:Allpages&namespace=%s&from=%s&to=%s' % (config['domain'], namespace, fr, to) #do not put urllib.quote in fr or to
elif r_suballpages == r_suballpages2:
fr = fr.split('&namespace=')[0] #clean &namespace=\d, sometimes happens
name = fr
url = '%s?title=Special:Allpages/%s&namespace=%s' % (config['domain'], name, namespace)
if not name in checked_suballpages:
checked_suballpages.append(name)
checked_suballpages.append(name) #to avoid reload dupe subpages links
raw2 = urllib.urlopen(url).read()
raw2 = cleanHTML(raw2)
rawacum += raw2 #merge it after removed junk

Loading…
Cancel
Save