This commit is contained in:
parent
816f222c77
commit
7a8610cd0c
|
@ -0,0 +1,10 @@
|
|||
"""
|
||||
抓取PT数据
|
||||
1. 创建数据库,sqlite
|
||||
2. 创建表
|
||||
3. 解析网站表格
|
||||
4. 按照规则进行去重
|
||||
5. 数据入库
|
||||
|
||||
数据如何展示呢??
|
||||
"""
|
|
@ -19,7 +19,7 @@ from main_notify import pushme, pushplus_bot
|
|||
class PtOperation:
|
||||
|
||||
def __init__(self):
|
||||
logger.add("../log/PtOperation.log", rotation="500 MB", level="INFO")
|
||||
logger.add("../log/PtOperation_{time:YYYY-MM-DD}.log", rotation="1 day", level="INFO")
|
||||
logger.add(sys.stderr, level="INFO")
|
||||
self.toml_file = 'PT/pt_config.toml'
|
||||
self.headers = {
|
||||
|
|
Loading…
Reference in New Issue