diff --git a/ebay_api.py b/ebay_api.py index 5888e46..6c058cc 100644 --- a/ebay_api.py +++ b/ebay_api.py @@ -20,17 +20,16 @@ class FindingApi: # departments = ["3034","93427"] (womens and mens) def get_data(self): - itemid_results_list = [] for category_id in cat_list: for i in self.pageNumber: params = { - "OPERATION-NAME":self.service, # make sure this works as intended + "OPERATION-NAME":self.service, "SECURITY-APPNAME":"scottbea-xlister-PRD-6796e0ff6-14862949", "SERVICE-VERSION":"1.13.0", "RESPONSE-DATA-FORMAT":"JSON", "categoryId":category_id, "paginationInput.entriesPerPage":"100", - "paginationInput.PageNumber":i # might need to change this + "paginationInput.PageNumber":i } response = requests.get("https://svcs.ebay.com/services/search/FindingService/v1", params=params) @@ -46,13 +45,13 @@ class FindingApi: for category_id in cat_list: for i in self.pageNumber: params = { - "OPERATION-NAME":self.service, # make sure this works as intended + "OPERATION-NAME":self.service, "SECURITY-APPNAME":"scottbea-xlister-PRD-6796e0ff6-14862949", "SERVICE-VERSION":"1.13.0", "RESPONSE-DATA-FORMAT":"JSON", "categoryId":category_id, "paginationInput.entriesPerPage":"100", - "paginationInput.PageNumber":i # might need to change this + "paginationInput.PageNumber":i } response = requests.get("https://svcs.ebay.com/services/search/FindingService/v1", params=params)