瀏覽代碼

update get_videos_remain_view_count timeout: (0.1, 3) -> (0.5, 3)

liqian 1 年之前
父節點
當前提交
b9ceb4ef33
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pool_predict.py

+ 1 - 1
pool_predict.py

@@ -57,7 +57,7 @@ def get_videos_remain_view_count(video_info_list):
         videos = [{'videoId': info[0], 'flowPool': info[1]} for info in video_info_list[i*10:(i+1)*10]]
         request_data = {'videos': videos}
         result = request_post(request_url=config_.GET_REMAIN_VIEW_COUNT_URL,
-                              request_data=request_data, timeout=(0.1, 3))
+                              request_data=request_data, timeout=(0.5, 3))
         log_.info(f"i = {i}, expend time = {(time.time()-remain_st_time)*1000}")
         if result is None:
             continue