From 58d8c8cda776ccdcf4b2d242e283b322a7b8c051 Mon Sep 17 00:00:00 2001 From: spbeach46 Date: Mon, 12 Oct 2020 18:42:57 -0700 Subject: [PATCH] added get_data method call to get_ids_from_cats call --- ebay_api.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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)