This commit is contained in:
rm 2024-01-15 00:35:01 +08:00
parent 816f222c77
commit 7a8610cd0c
2 changed files with 11 additions and 1 deletions

10
PT/pt_get_data.py Normal file
View File

@ -0,0 +1,10 @@
"""
抓取PT数据
1. 创建数据库sqlite
2. 创建表
3. 解析网站表格
4. 按照规则进行去重
5. 数据入库
数据如何展示呢
"""

View File

@ -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 = {