2
0
mirror of https://github.com/WikiTeam/wikiteam synced 2024-11-04 12:00:28 +00:00

--END-- issues

git-svn-id: https://wikiteam.googlecode.com/svn/trunk@53 31edc4fc-5e31-b4c4-d58b-c8bc928bcb95
This commit is contained in:
emijrp 2011-04-09 22:13:05 +00:00
parent 7321984a3f
commit b782510955

View File

@ -305,6 +305,7 @@ def generateXMLDump(config={}, titles=[], start=''):
delay(config=config)
if c % 10 == 0:
print ' Downloaded %d pages' % (c)
print title
xml = getXMLPage(config=config, title=title)
xml = cleanXML(xml=xml)
xmlfile.write(xml)
@ -317,8 +318,8 @@ def saveTitles(config={}, titles=[]):
#save titles in a txt for resume if needed
titlesfilename = '%s-%s-titles.txt' % (domain2prefix(config=config), config['date'])
titlesfile = open('%s/%s' % (config['path'], titlesfilename), 'w')
titles.append('--END--')
titlesfile.write('\n'.join(titles))
titlesfile.write('\n--END--')
titlesfile.close()
print 'Titles saved at...', titlesfilename