wikicrawl/settings.py

22 lines
584 B
Python
Raw Normal View History

2017-08-17 01:27:05 -06:00
import logging
class Settings:
# 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'