|
@@ -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()
|