diff --git a/indeed/indeed.py b/indeed/indeed.py index dd5ce38..0d7ad41 100644 --- a/indeed/indeed.py +++ b/indeed/indeed.py @@ -11,13 +11,15 @@ def __init__(self, publisher_id, **kwargs): self.publisher_id = publisher_id self.base_url = 'http://api.indeed.com/ads/' - def search(self, query=None, location='US', country_code='us'): + def search(self, query=None, location='US', country_code='us', limit=10, highlight=True): action = 'apisearch' query_params = { 'q' : query, 'l' : location, 'co': country_code, + 'limit': limit, + 'highlight': 1 if highlight else 0, 'format' : 'json', 'v' : '2', 'publisher' : self.publisher_id