| 
					
				 | 
			
			
				@@ -237,11 +237,12 @@ class ShiPinHaoAuthor(object): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         fav_count = int(obj['fav_count']) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if fav_count == 0: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            fav_count = 1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             divisor_cnt = 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         else: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            divisor_cnt = int(share_cnt / (fav_count+1)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            divisor_cnt = int(share_cnt / fav_count) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         # 视频时长小于30秒 返回 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if duration < 20: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if duration < 15: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             values = [[ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 obj['nickname'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 publish_time_str, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -261,48 +262,48 @@ class ShiPinHaoAuthor(object): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             time.sleep(0.5) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             Feishu.update_values(self.platform, 'shipinhao', "Vq7NeH", "A2:Z2", values) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return True 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        # 分享小于1000 返回 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if share_cnt < 500: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            values = [[ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                obj['nickname'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                publish_time_str, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                formatted_time, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                int(obj['fav_count']), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                int(obj['comment_count']), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                int(obj['like_count']), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                int(obj['forward_count']), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                divisor_cnt, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                video_obj.get('title').split("\n")[0].split("#")[0], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                duration, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                '否', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                '分享小于500', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                video_obj.get('DownloadAddress') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ]] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            Feishu.insert_columns(self.platform, 'shipinhao', "Vq7NeH", "ROWS", 1, 2) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            time.sleep(0.5) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            Feishu.update_values(self.platform, 'shipinhao', "Vq7NeH", "A2:Z2", values) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            return True 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        # 分享小于等于99999 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if share_cnt <= 99999 and divisor_cnt < 2: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            values = [[ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                obj['nickname'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                publish_time_str, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                formatted_time, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                int(obj['fav_count']), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                int(obj['comment_count']), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                int(obj['like_count']), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                int(obj['forward_count']), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                divisor_cnt, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                video_obj.get('title').split("\n")[0].split("#")[0], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                duration, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                '否', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                f'分享小于100000,分享/大拇指:{divisor_cnt}', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                video_obj.get('DownloadAddress') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ]] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            Feishu.insert_columns(self.platform, 'shipinhao', "Vq7NeH", "ROWS", 1, 2) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            time.sleep(0.5) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            Feishu.update_values(self.platform, 'shipinhao', "Vq7NeH", "A2:Z2", values) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            return True 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        # # 分享小于1000 返回 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        # if share_cnt < 500: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #     values = [[ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #         obj['nickname'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #         publish_time_str, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #         formatted_time, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #         int(obj['fav_count']), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #         int(obj['comment_count']), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #         int(obj['like_count']), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #         int(obj['forward_count']), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #         divisor_cnt, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #         video_obj.get('title').split("\n")[0].split("#")[0], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #         duration, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #         '否', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #         '分享小于500', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #         video_obj.get('DownloadAddress') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #     ]] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #     Feishu.insert_columns(self.platform, 'shipinhao', "Vq7NeH", "ROWS", 1, 2) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #     time.sleep(0.5) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #     Feishu.update_values(self.platform, 'shipinhao', "Vq7NeH", "A2:Z2", values) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #     return True 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        # # 分享小于等于99999 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        # if share_cnt <= 99999 and divisor_cnt < 1: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #     values = [[ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #         obj['nickname'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #         publish_time_str, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #         formatted_time, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #         int(obj['fav_count']), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #         int(obj['comment_count']), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #         int(obj['like_count']), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #         int(obj['forward_count']), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #         divisor_cnt, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #         video_obj.get('title').split("\n")[0].split("#")[0], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #         duration, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #         '否', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #         f'分享小于100000,分享/大拇指:{divisor_cnt}', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #         video_obj.get('DownloadAddress') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #     ]] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #     Feishu.insert_columns(self.platform, 'shipinhao', "Vq7NeH", "ROWS", 1, 2) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #     time.sleep(0.5) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #     Feishu.update_values(self.platform, 'shipinhao', "Vq7NeH", "A2:Z2", values) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #     return True 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         pipeline = PiaoQuanPipeline( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             platform=self.platform, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             mode=self.mode, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -385,7 +386,7 @@ if __name__ == "__main__": 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         platform="shipinhao", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         mode="author", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        user_dict={"uid": "123456", "link": "心血管王医生", "user_id": "1234565"}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        user_dict={"uid": "123456", "link": "老赵讲育儿", "user_id": "1234565"}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         rule_dict={}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         env="prod", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     ) 
			 |