瀏覽代碼

西瓜视频-新逆向

罗俊辉 1 年之前
父節點
當前提交
9e30229acb
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      xigua/xigua_author/xigua_author.py

+ 2 - 1
xigua/xigua_author/xigua_author.py

@@ -1123,8 +1123,9 @@ class XiGuaAuthor:
             proxies=tunnel_proxies(),
             timeout=5,
         )
-
+        time.sleep(random.randint(1, 5))
         video_info = extract_info_by_re(response.text)
+
         video_dict = {
             "video_title": video_info.get("title", ""),
             "video_id": video_info.get("video_id"),