-
Notifications
You must be signed in to change notification settings - Fork 164
/
config.py.template
50 lines (45 loc) · 1.22 KB
/
config.py.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
MAX_DEPTH = 10 # maximum click depth
MIN_DEPTH = 3 # minimum click depth
MAX_WAIT = 10 # maximum amount of time to wait between HTTP requests
MIN_WAIT = 5 # minimum amount of time allowed between HTTP requests
DEBUG = False # set to True to enable useful console output
# use this single item list to test how a site responds to this crawler
# be sure to comment out the list below it.
#ROOT_URLS = ["https:///digg.com/"]
ROOT_URLS = [
"https://digg.com/",
"https://www.yahoo.com",
"https://www.reddit.com",
"http://www.cnn.com",
"http://www.ebay.com",
"https://en.wikipedia.org/wiki/Main_Page",
"https://austin.craigslist.org/"
]
# items can be a URL "https://t.co" or simple string to check for "amazon"
blacklist = [
"https://t.co",
"t.umblr.com",
"messenger.com",
"itunes.apple.com",
"l.facebook.com",
"bit.ly",
"mediawiki",
".css",
".ico",
".xml",
"intent/tweet",
"twitter.com/share",
"signup",
"login",
"dialog/feed?",
".png",
".jpg",
".json",
".svg",
".gif",
"zendesk",
"clickserve"
]
# must use a valid user agent or sites will hate you
USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) ' \
'AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36'