-
Notifications
You must be signed in to change notification settings - Fork 21
/
config.py
24 lines (18 loc) · 867 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import os
# give time to download map tiles
SLEEP_SEC = 30.0
# csv output delimiter
DELIM = ','
HEADER_COLUMNS = ('place', 'url', 'scrape_time', 'day_of_week', 'hour_of_day', 'popularity_percent_normal', 'popularity_percent_current')
# path to chrome and chromedriver
CHROME_BINARY_LOCATION = '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'
CHROMEDRIVER_BINARY_LOCATION = '/usr/local/bin/chromedriver'
# keep an cache of the source htmls, with a timestamp in the filename
# if so, they should be cleaned out once in a while, since they are 1MB each
SAVE_HTML = False
# put your url or path here to a csv where the first column is a google maps url
# google sheets - export as csv https://stackoverflow.com/a/33727897/2327328
URL_PATH_INPUT = None
#URL_PATH_INPUT = 'urls.csv'
DEBUG = False
URL_PATH_INPUT_TEST = 'tests' + os.sep + 'test_urls.csv'