Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tools2/config_en_simple.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools2/config_en_simple.py')
-rw-r--r--tools2/config_en_simple.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/tools2/config_en_simple.py b/tools2/config_en_simple.py
new file mode 100644
index 0000000..fe501d0
--- /dev/null
+++ b/tools2/config_en_simple.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 = './simplewiki-20120112-pages-articles.xml'
+favorites_file_name = './favorites_en.txt'
+blacklist_file_name = './blacklist_en.txt'
+
+REDIRECT_TAGS = [u'#REDIRECT']
+
+BLACKLISTED_NAMESPACES = ['WIKIPEDIA:', 'MEDIAWIKI:']
+
+TEMPLATE_NAMESPACES = ['Template:']
+
+LINKS_NAMESPACES = ['Category']
+
+FILE_TAG = 'File:'
+
+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()