-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.cfg
43 lines (36 loc) · 1.38 KB
/
settings.cfg
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
[DEFAULT]
; system's timezone name, ex. Europe/Moscow, UTC,...
SystemTimezone = UTC
; file with headers
UserAgentsFilename = list_user_agents.cfg
; file with proxies
ProxiesFilename = list_proxy.cfg
; cache depth in hours
CacheDepth = 24
[LOGS]
; Folder for saving logs
Folder = logs
; Log filename. Support parameters like a 'system_{time}.log'
Filename = system.log
; Conditions of log's rotation. Support parameters. For example: 100 MB/12:00/2 days/1 week
Rotation = 1 day
; Log's format
Format={time} {level} {message}
; Level of log's report: TRACE/DEBUG/SUCCESS/WARNING/ERROR/CRITICAL/INFO
Level = DEBUG
[RULES]
; rules for normalization Author and Title fields - string separated by space (case insensitive)
NormalizationRules = Guest Unknown anonymous hidden Untitled
; substitution string for values from NormalizationRules (no value equals '')
SubstitutionString =
[DATABASES.SQLite]
Filename = db.sqlite
[CRAWLER.Pastebin]
; are we need to rotate headers during obtaining data? yes for accept, all others values to decline
RotateHeaders = yes
; are we need to rotate proxies during obtaining data? yes for accept, all others values to decline
RotateProxies = no
; interval between scans for new tasks (in seconds) / Also using for reports about script's alive status
ScanNewTasksInterval = 120
; url of monitoring service to send crawler's alive status
AliveStatusURL = http://127.0.0.1:8000/alive