From b78251095521a65187603076d88f1b408898f002 Mon Sep 17 00:00:00 2001 From: emijrp Date: Sat, 9 Apr 2011 22:13:05 +0000 Subject: [PATCH] --END-- issues git-svn-id: https://wikiteam.googlecode.com/svn/trunk@53 31edc4fc-5e31-b4c4-d58b-c8bc928bcb95 --- dumpgenerator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dumpgenerator.py b/dumpgenerator.py index 24f47b9..bf387d2 100644 --- a/dumpgenerator.py +++ b/dumpgenerator.py @@ -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