added get_data method call to get_ids_from_cats call

This commit is contained in:
spbeach46 2020-10-12 18:42:57 -07:00
parent 68f1341012
commit 58d8c8cda7

View File

@ -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)