Explorar el Código

视频号增加条数限制

zhangyong hace 1 año
padre
commit
dd2bf18260
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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"