-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.json
More file actions
43 lines (39 loc) · 981 Bytes
/
config.example.json
File metadata and controls
43 lines (39 loc) · 981 Bytes
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
{
"site": {
"kind": "generic",
"base_url": "https://example.com",
"target_uid": "YOUR_TARGET_UID",
"api_paths": {
"profile": "/ajax/profile/info?uid={uid}",
"articles": "/ajax/statuses/articles?uid={uid}&page={page}&feature=10",
"article_page": "/article/p/show?id={article_id}",
"qa_page": "/p/{qa_id}"
}
},
"auth": {
"mode": "browser_auto",
"browser": "auto",
"cookie_domains": ["example.com"],
"required_cookies": ["SESSION"],
"xsrf_cookie_names": ["XSRF-TOKEN", "XSRF_TOKEN"]
},
"network": {
"proxy": null,
"request_timeout": 20,
"connect_timeout": 10,
"max_retries": 3,
"delay_between_pages": 1,
"delay_between_items": 2
},
"output": {
"root_dir": "./output",
"qa_dir": "./qa/output",
"download_images": true,
"save_html": true,
"save_text": true
},
"safety": {
"allowed_base_domains": [],
"authorized_use_only": true
}
}