소스 검색

抓取调试

zhangyong 1 년 전
부모
커밋
5511a66014
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      extract_data/douyin/douyin_author.py
  2. 1 1
      extract_data/kuaishou/kuaishou_author.py

+ 1 - 1
extract_data/douyin/douyin_author.py

@@ -149,7 +149,7 @@ class douyinAuthor():
                                     if count > 5:
                                         Common.logger("douyin").info(
                                             f"重复视频不在抓取该用户,用户主页id:{account_id}")
-                                        return
+                                        break
                                     continue
                                 video_url = data[j].get('video').get('play_addr').get('url_list')[0]  # 视频链接
 

+ 1 - 1
extract_data/kuaishou/kuaishou_author.py

@@ -143,7 +143,7 @@ class kuaishouAuthor():
                                 if count > 5:
                                     Common.logger("kuaishou").info(
                                         f"重复视频不在抓取该用户,用户主页id:{account_id}")
-                                    return
+                                    break
                                 continue
                             channel_name = mark+'/kuaishou'
                             oss_object_key = Oss.video_sync_upload_oss(video_url, video_id, account_id, channel_name)