more wikis;

git-svn-id: https://wikiteam.googlecode.com/svn/trunk@122 31edc4fc-5e31-b4c4-d58b-c8bc928bcb95
pull/117/head
emijrp 13 years ago
parent 2c0d8b97b0
commit 79f961aef5

@ -337,7 +337,7 @@ def generateXMLDump(config={}, titles=[], start=''):
if c % 10 == 0:
print ' Downloaded %d pages' % (c)
xml = getXMLPage(config=config, title=title)
while not re.search(r'</siteinfo>', xml): #empty xml by server? retry...
while not re.search(r'</siteinfo>', xml): #empty xml by server? retry... If page was deleted, </siteinfo> is included but no <page> and no <revision>
print ' XML for this page is wrong. Waiting some seconds and reloading...'
time.sleep(30)
xml = getXMLPage(config=config, title=title)

@ -47,3 +47,9 @@ http://knowino.org/w/api.php
http://wikanda.granadapedia.es/w/api.php
http://acawiki.org/api.php
http://wikanda.cordobapedia.es/w/api.php
http://www.solarpedia.es/api.php
http://www.enciclopediadelinares.com/wiki/api.php
http://osl.uca.es/wikijuegos/w/index.php
http://osl2.uca.es/wikira/api.php
http://osl2.uca.es/wikiformacion/api.php

Loading…
Cancel
Save