zhangyong vor 1 Jahr
Ursprung
Commit
791afd4342

+ 1 - 1
config.ini

@@ -1,5 +1,5 @@
 [PATHS]
-VIDEO_OSS_PATH = /Users/tzld/Desktop/single_video_crawler/single_video/oss_video/
+VIDEO_OSS_PATH = /root/single_video_crawler/single_video/oss_video/
 
 
 

+ 2 - 2
single_video/get_vx_message.py

@@ -22,7 +22,7 @@ class VxMessage():
 
     @classmethod
     def read_id(cls):
-        with open('/Users/tzld/Desktop/single_video_crawler/id', 'r') as file:
+        with open('/root/single_video_crawler/id', 'r') as file:
             # 读取文件的全部内容
             content = file.read()
         return int(content)
@@ -67,7 +67,7 @@ class VxMessage():
                 else:
                     print(f"该消息类型不做处理{msg_type}")
                     break
-                with open('/Users/tzld/Desktop/single_video_crawler/id', 'w') as file:
+                with open('/root/single_video_crawler/id', 'w') as file:
                     file.write(str(id+1))
                 # 获取当前时间
                 current_time = datetime.now()

+ 1 - 1
single_video/gongzhonghao/gongzhonghao_video.py

@@ -17,7 +17,7 @@ from common.userAgent import get_random_user_agent
 sys.path.append(os.getcwd())
 
 config = configparser.ConfigParser()
-config.read('/Users/tzld/Desktop/single_video_crawler/config.ini')  # 替换为您的配置文件路径
+config.read('/root/single_video_crawler/config.ini')  # 替换为您的配置文件路径
 class gongzhonghaoVdieo():
 
     @classmethod

+ 1 - 1
single_video/xigua/xigua_video.py

@@ -15,7 +15,7 @@ from common.aliyun_oss_uploading import Oss
 from common.userAgent import get_random_user_agent
 
 config = configparser.ConfigParser()
-config.read('/Users/tzld/Desktop/single_video_crawler/config.ini')  # 替换为您的配置文件路径
+config.read('/root/single_video_crawler/config.ini')  # 替换为您的配置文件路径
 class xiguaVideo():
 
     # 获取西瓜 标题+视频链接