diff --git a/PT/pt_get_data.py b/PT/pt_get_data.py new file mode 100644 index 0000000..660f312 --- /dev/null +++ b/PT/pt_get_data.py @@ -0,0 +1,10 @@ +""" +抓取PT数据 +1. 创建数据库,sqlite +2. 创建表 +3. 解析网站表格 +4. 按照规则进行去重 +5. 数据入库 + +数据如何展示呢?? +""" \ No newline at end of file diff --git a/PT/pt_operation.py b/PT/pt_operation.py index 70e9e62..6918780 100644 --- a/PT/pt_operation.py +++ b/PT/pt_operation.py @@ -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 = {