wangkun 2 years ago
parent
commit
d78dd73289
2 changed files with 3 additions and 3 deletions
  1. 1 1
      main/haokan_channel.py
  2. 2 2
      main/haokan_follow.py

+ 1 - 1
main/haokan_channel.py

@@ -334,7 +334,7 @@ class Channel:
                     cookies = GetCookies.get_cookies(v.split(',')[0])
                     Common.logger(log_type).info(f'cookies:{cookies}\n')
                     cls.get_channel_videos(log_type, v.split(',')[0], v.split(',')[1], env, cookies)
-                    time.sleep(10)
+                    time.sleep(1)
         except Exception as e:
             Common.logger(log_type).error(f'get_all_channel_videos异常:{e}\n')
 

+ 2 - 2
main/haokan_follow.py

@@ -357,8 +357,8 @@ class Follow:
                     our_id = v.split(',')[1]
                     Common.logger(log_type).info(f'抓取{user_name}主页视频\n')
                     cls.get_follow_feed(log_type, out_id, our_id, user_name, env)
-                    Common.logger(log_type).info('休眠 10 秒\n')
-                    time.sleep(10)
+                    Common.logger(log_type).info('休眠 1 秒\n')
+                    time.sleep(1)
                     cls.ctime = ''
         except Exception as e:
             Common.logger(log_type).error(f'get_user_videos异常:{e}\n')