瀏覽代碼

抓取调试

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)