-
-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathoffliner-definition.json
More file actions
182 lines (182 loc) · 5.76 KB
/
offliner-definition.json
File metadata and controls
182 lines (182 loc) · 5.76 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
{
"offliner_id": "sotoki",
"stdOutput": true,
"stdStats": true,
"flags": {
"domain": {
"type": "string",
"required": true,
"title": "Domain",
"description": "Domain name from StackExchange to scrape."
},
"name": {
"type": "string",
"required": false,
"title": "Name",
"description": "ZIM name. Used as identifier and filename (date will be appended). Constructed from domain if not supplied",
"pattern": "^([a-z0-9\\-\\.]+_)([a-z\\-]+_)([a-z0-9\\-\\.]+)$"
},
"title": {
"type": "string",
"required": false,
"title": "Title",
"description": "Custom title for your ZIM. Site name otherwise",
"minLength": 1,
"maxLength": 30
},
"description": {
"type": "string",
"required": false,
"title": "Description",
"description": "Custom description for your ZIM. Site tagline otherwise",
"minLength": 1,
"maxLength": 80
},
"favicon": {
"type": "blob",
"kind": "image",
"required": false,
"title": "Favicon",
"description": "URL for Favicon. Site square logo otherwise"
},
"creator": {
"type": "string",
"required": false,
"title": "Creator",
"description": "Name of content creator. Stack Exchange otherwise"
},
"publisher": {
"type": "string",
"required": false,
"title": "Publisher",
"isPublisher": true,
"description": "Custom publisher name (ZIM metadata). openZIM otherwise"
},
"tags": {
"type": "string",
"required": false,
"title": "ZIM Tags",
"description": "A semicolon (;) delimited list of tags to add to the ZIM. Scraper generic flags (category:stack_exchange, stack_exchange, ... are always added automatically)"
},
"without_images": {
"type": "boolean",
"required": false,
"title": "Without Images",
"description": "Don't include images (in-post images, user icons). Faster."
},
"without_user_profiles": {
"type": "boolean",
"required": false,
"title": "Without User Profiles",
"description": "Don't include user profile pages. Faster"
},
"without_external_links": {
"type": "boolean",
"required": false,
"title": "Without External links",
"description": "Remove all external links from posts and user profiles. Link text is kept but not the address. Slower"
},
"without_unanswered": {
"type": "boolean",
"required": false,
"title": "Without Unanswered",
"description": "Don't include posts that have zero answer. Faster"
},
"without_users_links": {
"type": "boolean",
"required": false,
"title": "Without Users Links",
"description": "Remove \"user links\" completely. Remove both url and text for a selected list of \"social\" websites. Slower"
},
"without_names": {
"type": "boolean",
"required": false,
"title": "Without Names",
"description": "Replace usernames in posts with generated ones"
},
"censor_words_list": {
"type": "url",
"required": false,
"title": "Words black list",
"description": "URL to a text file containing one word per line. Each of them to be removed from all content. Very slow."
},
"output": {
"type": "string",
"required": false,
"title": "Output folder",
"description": "Output folder for ZIM file(s). Leave it as `/output`",
"pattern": "^/output$"
},
"threads": {
"type": "integer",
"required": false,
"title": "Threads",
"description": "Number of threads to use to handle tasks concurrently. Increase to speed-up I/O operations (disk, network). Default: 1",
"min": 1
},
"tmp_dir": {
"type": "string",
"required": false,
"title": "Temp folder",
"description": "Where to create temporay build folder. Leave it as `/output`",
"pattern": "^/output$"
},
"zim_file": {
"type": "string",
"required": false,
"title": "ZIM filename",
"description": "ZIM file name (based on --name if not provided). Include {period} to insert date period dynamically",
"pattern": "^([a-z0-9\\-\\.]+_)([a-z\\-]+_)([a-z0-9\\-\\.]+_)([a-z0-9\\-\\.]+_|)([\\d]{4}-[\\d]{2}|\\{period\\}).zim$"
},
"optimization_cache": {
"type": "url",
"required": false,
"title": "Optimization Cache URL",
"description": "S3 Storage URL including credentials and bucket",
"secret": true
},
"mirror": {
"type": "url",
"required": false,
"title": "Mirror",
"description": "URL from which to download compressed XML dumps",
"secret": true,
"default": "https://s3.us-west-1.wasabisys.com/org-kiwix-stackexchange"
},
"stats_filename": {
"type": "string",
"required": false,
"title": "Stats filename",
"description": "Scraping progress file. Leave it as `/output/task_progress.json`",
"pattern": "^/output/task_progress\\.json$"
},
"redis_url": {
"type": "string",
"required": false,
"title": "Redis URL",
"description": "Redis URL to use as database. Keep it as unix:///var/run/redis.sock",
"frozen": true,
"default": "unix:///var/run/redis.sock"
},
"defrag_redis": {
"type": "string",
"required": false,
"title": "Defrag redis",
"description": "Keep it as ENV:REDIS_PID"
},
"debug": {
"type": "boolean",
"required": false,
"title": "Debug",
"description": "Enable verbose output"
},
"keep_redis": {
"type": "boolean",
"required": false,
"title": "Keep redis",
"description": "Don't flush redis DB on exit. Keep it enabled.",
"frozen": true,
"default": true
}
}
}