Browse Source

视频号增加条数限制

zhangyong 1 year ago
parent
commit
dd2bf18260
1 changed files with 4 additions and 0 deletions
  1. 4 0
      shipinhao/shipinhao_author/shipinhao_author.py

+ 4 - 0
shipinhao/shipinhao_author/shipinhao_author.py

@@ -97,6 +97,10 @@ class ShiPinHaoAuthor(object):
                 return False
 
     def get_account_videos(self):
+        if self.download_cnt >= int(
+                self.rule_dict.get("videos_cnt", {}).get("min", 300)
+        ):
+            return
         account_id = self.get_account_id()
         if account_id:
             url = "http://61.48.133.26:30001/FinderGetUpMasterNextPage"