jack 7 tháng trước cách đây
mục cha
commit
6eb4dacd31
5 tập tin đã thay đổi với 16 bổ sung4 xóa
  1. 0 3
      .gitignore
  2. 0 0
      manual/3dos_daily.py
  3. 0 0
      manual/read_news.opml
  4. 1 1
      manual/read_news.py
  5. 15 0
      utils/utils_ql_create_tasks.py

+ 0 - 3
.gitignore

@@ -62,6 +62,3 @@ target/
 
 other/split_clash_config/split_config
 ai_news/save_data
-
-manual/clash/clash_each_node
-manual/singbox/singbox_each_node

+ 0 - 0
manual/3dos/3dos_daily.py → manual/3dos_daily.py


+ 0 - 0
manual/read_news/huntly.opml → manual/read_news.opml


+ 1 - 1
manual/read_news/main.py → manual/read_news.py

@@ -163,7 +163,7 @@ class SearchByKeyword:
 
 # 使用示例
 if __name__ == "__main__":
-    opml_file_path = "huntly.opml"
+    opml_file_path = "read_news.opml"
     opml_file_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), opml_file_path)
 
     if not os.path.exists(opml_file_path):

+ 15 - 0
utils/utils_ql_create_tasks.py

@@ -77,6 +77,7 @@ def main():
             base_path = os.path.join(project_path, 'base')
             spider_path = os.path.join(project_path, 'spider')
             message_path = os.path.join(project_path, 'message')
+            manual_path = os.path.join(project_path, 'manual')
             tasks_template = [{
                 'base_tasks': [
                     {
@@ -186,6 +187,20 @@ def main():
                         "labels": ["message"]
                     }
                 ],
+                'manual': [
+                    {
+                        "name": "手动读取rss订阅新闻",
+                        "command": "python3 {}/read_news.py".format(manual_path),
+                        "schedule": "0 0 1 1 *",
+                        "labels": ["manual"]
+                    },
+                    {
+                        "name": "3dos每日签到",
+                        "command": "python3 {}/3dos_daily.py".format(manual_path),
+                        "schedule": "0 0 1 1 *",
+                        "labels": ["manual"]
+                    },
+                ]
             }]
 
             for task_template in tasks_template: