| 
					
				 | 
			
			
				@@ -1,40 +0,0 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-""" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-@author: luojunhui 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-""" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import json 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import requests 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-class Accounts(object): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    """ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    公众号历史文章信息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    """ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    ROOT_URL = 'http://192.168.100.31:8179' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @classmethod 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    def get_history_articles(cls, account_nickname): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        """ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        获取账号历史文章 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        :return: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        """ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        api_url = f'{cls.ROOT_URL}/artlce_list' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        payload = json.dumps({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "account_nickname": account_nickname, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "filter_same": filter_same, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "filter_sensitive": filter_sensitive, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "index_list": index_list, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "keys": keys, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "max_time": max_time, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "min_time": min_time, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "msg_type": msg_type, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "rate": rate, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "reverse": reverse, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "top_n": 10000, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "use_max_time": True, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "use_min_time": True 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        res = requests.request("POST", api_url, headers={}, data=payload).json() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return res 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 |