From 7a8610cd0c5f4d62df133197cf2bee7f42188322 Mon Sep 17 00:00:00 2001 From: rm Date: Mon, 15 Jan 2024 00:35:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PT/pt_get_data.py | 10 ++++++++++ PT/pt_operation.py | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 PT/pt_get_data.py 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 = {