-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.sample.yaml
More file actions
77 lines (69 loc) · 2.39 KB
/
config.sample.yaml
File metadata and controls
77 lines (69 loc) · 2.39 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
paths:
archive: "out/archive"
download: "out/downloads"
logs: "out/logs"
tmp: "out/tmp"
hashdb_file: "out/hashdb.jsonl"
removed_log_file: "out/removed.jsonl"
download:
# Template variables are documented in README (e.g., {origin_group}/{yearmonth}...).
filename_pattern: "{origin_group}/{yearmonth}/{screenname}-{datetime}-{index}.{ext}"
progress: filesize # off / count / filesize
includes:
gifv: false # include animated GIFV clips
video: false # include video attachments
audio: false # include audio files
thumbnail_only: false # download entries with only thumbnails
self: false # include posts authored by yourself
nsfw: true # include NSFW/sensitive posts
try_unknown: false # treat unknown media as images when extensions match
rate:
default_rate: "2/minute" # accepts rates ("4/minute") or durations ("10 seconds")
burst_allowed: false # true allows clumped bursts; false enforces spacing
retry:
max_attempts: 3
delay: "10 seconds"
rate_control: true # true enforces download.rate delay between retries
archive:
enabled: true
policy: keep_old # keep_old / latest / database (see README)
log_duplicates: true
logging:
frequency: month
filename_pattern: "{origin_group}/{yearmonth}.jsonl"
log_removed: true
log_duplicate: true
removed:
# Skip media URLs that returned 404 for this duration.
# Set to "off" to retry every run.
skip_media_not_found: "1 week"
runtime:
dry_run: false
limit: 20
unbookmark: true # true removes the bookmark after successful download
instances:
- name: mastodon-example
base_url: https://mastodon.example
access_token: "YOUR_ACCESS_TOKEN"
account_id: "12345"
account_handle: "user"
- name: misskey-example
base_url: https://misskey.example
access_token: "YOUR_ACCESS_TOKEN"
account_handle: "username@mastodon.social"
unbookmark: false # override per-instance unbookmark behavior
rate: "4/minute" # per-instance rate limit (posts/minute)
classify:
# Rules are matched in order; the first glob pattern that matches a host
# decides the group name written to logs/database.
rules:
- match: "*misskey*"
group: misskey
- match: "*mastodon*"
group: mastodon
- match: "*.mstdn.jp"
group: mastodon
- match: "pawoo.net"
group: pawoo
- match: "*"
group: other