launcher.py

git-svn-id: https://wikiteam.googlecode.com/svn/trunk@503 31edc4fc-5e31-b4c4-d58b-c8bc928bcb95
pull/117/head
emijrp 12 years ago
parent bae6687752
commit 085b05a19d

@ -25,6 +25,7 @@ wikis = f.read().splitlines()
f.close()
for wiki in wikis:
skip = False
wikiname = re.sub(r'(\.|^www\.|\/api\.php)', '', wiki.lower().split('://')[1])
wikiname = re.sub('[-/]', '_', wikiname)
wikidir = ''
@ -37,8 +38,12 @@ for wiki in wikis:
if f.startswith(wikiname) and f.endswith('.7z'):
print 'This wiki was downloaded and compressed before in:', f
print 'Skiping...'
skip = True
prefix = wikidir.split('-wikidump')[0]
if skip:
continue
if wikidir: #resume
print 'Resuming download, using directory', wikidir
os.system('python dumpgenerator.py --api=%s --xml --images --resume --path=%s' % (wiki, wikidir))

Loading…
Cancel
Save