zhangyong 1 jaar geleden
bovenliggende
commit
48af64e437
1 gewijzigde bestanden met toevoegingen van 5 en 0 verwijderingen
  1. 5 0
      extract_data/zhannei/zhannei_author.py

+ 5 - 0
extract_data/zhannei/zhannei_author.py

@@ -68,6 +68,11 @@ class ZhanNeiAuthor():
             if len(user_list) == 0:
                 return
             for account_id in user_list:
+                id = cls.select_videoUrl_id(account_id, mark)
+                if id:
+                    Common.logger("zhannei").info(
+                        f"重复视频不在抓取该用户,用户主页id:{account_id}")
+                    continue
                 time.sleep(5)
                 Common.logger("zhannei").info(f"用户主页ID:{account_id}")
                 cookie = Material.get_houtai_cookie()