|
|
@ -940,7 +940,7 @@ def main(params=[]):
|
|
|
|
config, other = getParameters(params=params)
|
|
|
|
config, other = getParameters(params=params)
|
|
|
|
|
|
|
|
|
|
|
|
#notice about wikipedia dumps
|
|
|
|
#notice about wikipedia dumps
|
|
|
|
if re.findall(r'(wikipedia|wikisource|wiktionary|wikibooks|wikiversity|wikimedia|wikispecies|wikiquote|wikinews|wikidata|wikivoyage)\.org', config['api']+config['index']):
|
|
|
|
if re.findall(r'(?i)(wikipedia|wikisource|wiktionary|wikibooks|wikiversity|wikimedia|wikispecies|wikiquote|wikinews|wikidata|wikivoyage)\.org', config['api']+config['index']):
|
|
|
|
print 'PLEASE, DO NOT USE THIS SCRIPT TO DOWNLOAD WIKIMEDIA PROJECTS!'
|
|
|
|
print 'PLEASE, DO NOT USE THIS SCRIPT TO DOWNLOAD WIKIMEDIA PROJECTS!'
|
|
|
|
print 'Download the dumps from http://dumps.wikimedia.org'
|
|
|
|
print 'Download the dumps from http://dumps.wikimedia.org'
|
|
|
|
if not other['force']:
|
|
|
|
if not other['force']:
|
|
|
|