Sfoglia il codice sorgente

add youtube 通过接口获取视频列表

kk 2 anni fa
parent
commit
41042e7e9a
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      youtube/youtube_follow/youtube_follow_api.py

+ 3 - 3
youtube/youtube_follow/youtube_follow_api.py

@@ -1449,8 +1449,8 @@ class Follow:
                     Common.logger(log_type, crawler).info(f'获取 {user_name} 主页视频\n')
                     cls.get_videos(log_type, crawler, strategy, oss_endpoint, env, out_uid, our_uid, machine,
                                    out_user_url)
-                    Common.logger(log_type, crawler).info('休眠 10 秒')
-                    time.sleep(random.randint(1, 2))
+                    # Common.logger(log_type, crawler).info('休眠 10 秒')
+                    # time.sleep(random.randint(1, 2))
                     cls.continuation = ''
         except Exception as e:
             Common.logger(log_type, crawler).error(f"get_follow_videos异常:{e}\n")
@@ -1461,7 +1461,7 @@ if __name__ == "__main__":
     # print(Follow.get_user_from_feishu('follow', 'youtube', 'c467d7', 'dev', 'local'))
     # Follow.get_out_user_info('follow', 'youtube', 'UC08jgxf119fzynp2uHCvZIg', '@weitravel')
     # Follow.get_video_info('follow', 'youtube', 'OGVK0IXBIhI')
-    Follow.get_follow_videos('follow', 'youtube', 'youtube_follow', 'out', 'dev', 'local')
+    # Follow.get_follow_videos('follow', 'youtube', 'youtube_follow', 'out', 'dev', 'local')
     # print(Follow.filter_emoji("姐妹倆一唱一和,完美配合,終於把大慶降服了😅😅#萌娃搞笑日常"))
     # Follow.repeat_video('follow', 'youtube', 4, "dev", "local")
     # title = "'西部巡游220丨两人一车环游中国半年,需要花费多少钱? 2万公里吃住行费用总结'"