diff options
Diffstat (limited to 'tools2/config_pl.py')
-rw-r--r-- | tools2/config_pl.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tools2/config_pl.py b/tools2/config_pl.py new file mode 100644 index 0000000..e9e0a25 --- /dev/null +++ b/tools2/config_pl.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# These configuration params are used in the process to create +# a new wikipedia activity + +input_xml_file_name = './plwiki-20111227-pages-articles.xml' +favorites_file_name = './favorites_pl.txt' +blacklist_file_name = './blacklist_pl.txt' + +REDIRECT_TAGS = [u'#REDIRECT', u'#REDIRECCIÓN'] + +BLACKLISTED_NAMESPACES = ['WIKIPEDIA:', 'MEDIAWIKI:'] + +TEMPLATE_NAMESPACES = ['Szablon:'] + +LINKS_NAMESPACES = [u'Kategoria'] + +FILE_TAG = 'Plik:' + +MAX_IMAGE_SIZE = 300 + +# This part should not be changed +import platform + +system_id = "%s%s" % (platform.system().lower(), + platform.architecture()[0][0:2]) +if platform.processor().startswith('arm'): + system_id = platform.processor() |