-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
39 lines (34 loc) · 1.17 KB
/
config.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
import os
PTT1_ID = os.environ['PTT1_ID']
PTT1_PW = os.environ['PTT1_PW']
version = '0.1.0'
global_gen_web = True
board_rules = [
('give', [(None, 3, 1)], True if global_gen_web else False, 'https://www.ptt.cc/bbs/give/M.1612495900.A.C32.html'),
('Wanted', [(None, 3, 1)], True if global_gen_web else False,
'https://www.ptt.cc/bbs/Wanted/M.1608829773.A.D3B.html'),
('HatePolitics', [(None, 5, 1)], True if global_gen_web else False,
'https://www.ptt.cc/bbs/HatePolitics/M.1617115262.A.D60.html'),
('Gossiping', [
(None, 5, 1),
('[問卦]', 3, 1),
('[新聞]', 1, 1)
], True if global_gen_web else False, 'https://www.ptt.cc/bbs/Gossiping/M.1637425085.A.07D.html'),
('Beauty', [(None, 3, 1)], True if global_gen_web else False,
'https://www.ptt.cc/bbs/Beauty/M.1630069980.A.84B.html'),
('Gamesale', [
(None, 2, 1),
('[販售]', 1, 1),
('[徵求]', 1, 1),
('[交換]', 1, 1),
('[贈送]', 1, 1),
], True if global_gen_web else False, 'https://www.ptt.cc/bbs/Gossiping/M.1637425085.A.07D.html')
]
post_template = '''---
title: =title=
tags:
=tags=
abbrlink: =link=
date: =date=
---
'''