2017-08-22 17:50:33 -06:00
|
|
|
# Application run-time configuration/settings. This contains variables
|
|
|
|
# that control how the program works but are kept separate from the
|
|
|
|
# program. It makes sense for certain parameters to be adjustable but
|
|
|
|
# not hard-coded into the application. For example, some users may want
|
|
|
|
# to run this program in English while others may want to run in Spanish.
|
|
|
|
# The way this works is we specify those variables external from the
|
|
|
|
# application (here) and pass them into the application (app.config module).
|
|
|
|
# The application then references app.config.obj to access the variables
|
|
|
|
# passed in from here.
|
|
|
|
|
2017-08-17 01:27:05 -06:00
|
|
|
import logging
|
|
|
|
|
2017-08-22 17:50:33 -06:00
|
|
|
class DefaultSettings:
|
2017-08-17 01:27:05 -06:00
|
|
|
# Application Parameters
|
|
|
|
LOG_LEVEL = logging.INFO
|
2017-08-17 01:45:07 -06:00
|
|
|
DO_BREAKPOINTS = True
|
|
|
|
PAGE_DELAY = 0
|
2017-08-17 01:27:05 -06:00
|
|
|
|
|
|
|
# Web Driver Parameters
|
|
|
|
WEBDRIVER_USER_AGENT = 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/5.0)'
|
2017-08-17 01:45:07 -06:00
|
|
|
WEBDRIVER_BROWSER = 'chrome' # Options are 'chrome', 'firefox'
|
2017-08-17 01:27:05 -06:00
|
|
|
|
2017-08-17 01:45:07 -06:00
|
|
|
# Wikipedia Parameters
|
2017-08-17 01:27:05 -06:00
|
|
|
PAGE_BASE_URL = 'https://www.wikipedia.org/'
|
|
|
|
PAGE_LANGUAGE = 'English'
|
2017-08-17 01:45:07 -06:00
|
|
|
# PAGE_LANGUAGE = 'Español'
|
|
|
|
# PAGE_LANGUAGE = 'Русский'
|
2017-08-17 01:27:05 -06:00
|
|
|
|
|
|
|
# Data Layer Parameters
|
|
|
|
SQLITE_DBFILE = '/home/mathew/.wikicrawler.db'
|
|
|
|
|