|  | @@ -294,10 +294,22 @@ class SBClient(BaseClient):
 | 
											
												
													
														|  |                  break
 |  |                  break
 | 
											
												
													
														|  |              body["nextToken"] = info["nextToken"]
 |  |              body["nextToken"] = info["nextToken"]
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -    def get_keywords(self):
 |  | 
 | 
											
												
													
														|  | 
 |  | +    def get_keywords(self,**param):
 | 
											
												
													
														|  |          url_path = "/sb/keywords"
 |  |          url_path = "/sb/keywords"
 | 
											
												
													
														|  |          return self._request(url_path, method="GET")
 |  |          return self._request(url_path, method="GET")
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +    def iter_keywords(self,**param):
 | 
											
												
													
														|  | 
 |  | +        if "startIndex" not in param:
 | 
											
												
													
														|  | 
 |  | +            param["startIndex"] = 0
 | 
											
												
													
														|  | 
 |  | +            param["count"] = 5000
 | 
											
												
													
														|  | 
 |  | +        while True:
 | 
											
												
													
														|  | 
 |  | +            info:list = self.get_keywords(**param)
 | 
											
												
													
														|  | 
 |  | +            # print(info)
 | 
											
												
													
														|  | 
 |  | +            if len(info)==0:
 | 
											
												
													
														|  | 
 |  | +                break
 | 
											
												
													
														|  | 
 |  | +            param["startIndex"] += 5000
 | 
											
												
													
														|  | 
 |  | +            yield info
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |      def get_targets(self, **body):
 |  |      def get_targets(self, **body):
 | 
											
												
													
														|  |          url_path = "/sb/targets/list"
 |  |          url_path = "/sb/targets/list"
 | 
											
												
													
														|  |          return self._request(url_path, method="POST", body=body)
 |  |          return self._request(url_path, method="POST", body=body)
 |