-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.sample.py
47 lines (42 loc) · 1.02 KB
/
config.sample.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import os
from hyper.config import Config
PROXY_HOST = os.getenv("PROXY_HOST", "localhost")
PROXY_PORT = os.getenv("PROXY_PORT", "8080")
defaults = {
# update interval in seconds: int
"interval": 180,
# add a random component to execution time
"jitter": 0,
# set run concurrency
"concurrency": {
# per network (for async networks)
"network": 20,
# whole system (number of concurrent networks of this class)
"system": None,
},
"enabled": True,
"scraper": {
"requests_timeout": 11,
"retry": False,
"retry_opts": {},
"proxy_enabled": False,
"ssl_verification": True,
"proxies": {
"http": "http://%s:%s" % (PROXY_HOST, PROXY_PORT),
"https": "http://%s:%s" % (PROXY_HOST, PROXY_PORT),
},
},
}
schedule = Config(
defaults, {
".*": {
"enabled": False,
},
".*bicing.*": {
"enabled": True,
}
},
)
queues = [
("default", 100),
]