-
Notifications
You must be signed in to change notification settings - Fork 167
Description
When trying to scrape a wiki, I get the following error:
40 namespaces found
Retrieving titles in the namespace 0
Traceback (most recent call last):
File "dumpgenerator.py", line 2572, in
main()
File "dumpgenerator.py", line 2564, in main
createNewDump(config=config, other=other)
File "dumpgenerator.py", line 2133, in createNewDump
getPageTitles(config=config, session=other['session'])
File "dumpgenerator.py", line 391, in getPageTitles
for title in titles:
File "dumpgenerator.py", line 261, in getPageTitlesAPI
site = mwclient.Site(apiurl.netloc, apiurl.path.replace("api.php", ""), scheme=apiurl.scheme, pool=session)
File "C:\Python27\lib\site-packages\mwclient\client.py", line 169, in init
self.pages = listing.PageList(self)
File "C:\Python27\lib\site-packages\mwclient\listing.py", line 242, in init
super(PageList, self).init(site, 'allpages', 'ap',
TypeError: super() argument 1 must be type, not classobj