From 46ee520732cdb1a79c0acab53559ba6e77ca2447 Mon Sep 17 00:00:00 2001 From: MasonLiu <2857911564@qq.com> Date: Fri, 6 Dec 2024 16:32:34 +0800 Subject: [PATCH] add UTF-8 header --- Core.py | 6 ++++++ GotoSend_4hou.py | 2 ++ GotoSend_anquanke.py | 2 ++ GotoSend_doonsec.py | 2 ++ GotoSend_freebuf.py | 2 ++ GotoSend_qianxin.py | 2 ++ GotoSend_seebug.py | 2 ++ GotoSend_xianzhi.py | 2 ++ SendBot.py | 2 ++ media/common.py | 1 + media/freebuf.py | 1 + media/xianzhi.py | 1 + test.py | 5 +++++ 13 files changed, 30 insertions(+) diff --git a/Core.py b/Core.py index 5078280..d53a0ba 100644 --- a/Core.py +++ b/Core.py @@ -1,3 +1,9 @@ +# -*- coding: utf-8 -*- +""" +@Author: MasonLiu +@Description: 本程序可以爬取各安全资讯源,并发送到飞书群组。 +""" + import signal from datetime import datetime, timedelta import sys diff --git a/GotoSend_4hou.py b/GotoSend_4hou.py index 9fdb637..f74d89e 100644 --- a/GotoSend_4hou.py +++ b/GotoSend_4hou.py @@ -1,3 +1,5 @@ +# -*- coding: utf-8 -*- + import json import sqlite3 import os diff --git a/GotoSend_anquanke.py b/GotoSend_anquanke.py index 872ac75..31a6223 100644 --- a/GotoSend_anquanke.py +++ b/GotoSend_anquanke.py @@ -1,3 +1,5 @@ +# -*- coding: utf-8 -*- + import json import sqlite3 import os diff --git a/GotoSend_doonsec.py b/GotoSend_doonsec.py index 7e5ac15..95c3a19 100644 --- a/GotoSend_doonsec.py +++ b/GotoSend_doonsec.py @@ -1,3 +1,5 @@ +# -*- coding: utf-8 -*- + import json import sqlite3 import os diff --git a/GotoSend_freebuf.py b/GotoSend_freebuf.py index ece423d..a76ee89 100644 --- a/GotoSend_freebuf.py +++ b/GotoSend_freebuf.py @@ -1,3 +1,5 @@ +# -*- coding: utf-8 -*- + import json import sqlite3 import os diff --git a/GotoSend_qianxin.py b/GotoSend_qianxin.py index 41643b9..0b91296 100644 --- a/GotoSend_qianxin.py +++ b/GotoSend_qianxin.py @@ -1,3 +1,5 @@ +# -*- coding: utf-8 -*- + import json import sqlite3 import os diff --git a/GotoSend_seebug.py b/GotoSend_seebug.py index 2551f93..e8fb434 100644 --- a/GotoSend_seebug.py +++ b/GotoSend_seebug.py @@ -1,3 +1,5 @@ +# -*- coding: utf-8 -*- + import json import sqlite3 import os diff --git a/GotoSend_xianzhi.py b/GotoSend_xianzhi.py index cb5cf7d..fec13d0 100644 --- a/GotoSend_xianzhi.py +++ b/GotoSend_xianzhi.py @@ -1,3 +1,5 @@ +# -*- coding: utf-8 -*- + import json import sqlite3 import os diff --git a/SendBot.py b/SendBot.py index b356a50..1799f08 100644 --- a/SendBot.py +++ b/SendBot.py @@ -1,3 +1,5 @@ +# -*- coding: utf-8 -*- + import requests import json import hashlib diff --git a/media/common.py b/media/common.py index 60ee420..456a867 100644 --- a/media/common.py +++ b/media/common.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- import os import requests import xml.etree.ElementTree as ET diff --git a/media/freebuf.py b/media/freebuf.py index cdd0dec..4a90cd3 100644 --- a/media/freebuf.py +++ b/media/freebuf.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- import os import requests import xml.etree.ElementTree as ET diff --git a/media/xianzhi.py b/media/xianzhi.py index 2478336..2746cb6 100644 --- a/media/xianzhi.py +++ b/media/xianzhi.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- import os import requests import xml.etree.ElementTree as ET diff --git a/test.py b/test.py index cce6dcc..10059d1 100644 --- a/test.py +++ b/test.py @@ -1,3 +1,8 @@ +# -*- coding: utf-8 -*- +""" +@Author: MasonLiu +@Description: 测试程序的运行 +""" from SendBot import SendToFeishu, gen_sign from GotoSend_seebug import Src_seebug