Jelajahi Sumber

西瓜视频-新逆向

罗俊辉 1 tahun lalu
induk
melakukan
9e30229acb
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  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"),