diff --git a/ebay_api.py b/ebay_api.py index 81dd552..6c972d8 100644 --- a/ebay_api.py +++ b/ebay_api.py @@ -4,6 +4,7 @@ import concurrent.futures import json import requests import pandas as pd +import config as cfg class FindingApi: '''Methods for accessing eBays FindingApi services''' @@ -13,8 +14,7 @@ class FindingApi: 'findItemsByKeywords', 'findItemsIneBayStores', 'findItemsByCategory', 'findItemsByProduct' ][service] - self.pageNumber = list(range(1, pageNumber)) # 64 pages is recommended - # as this will give equal weights to cats given call constraints + self.pageNumber = list(range(1, pageNumber)) # 77 pgs will give equal weights to cats given call constraints # departments = ["3034","93427"] (womens and mens) @@ -32,7 +32,7 @@ class FindingApi: params = { "OPERATION-NAME":self.service, - "SECURITY-APPNAME":"scottbea-xlister-PRD-6796e0ff6-14862949", + "SECURITY-APPNAME":cfg.sec['SECURITY-APPNAME'], "SERVICE-VERSION":"1.13.0", "RESPONSE-DATA-FORMAT":"JSON", "categoryId":category_id, @@ -106,7 +106,7 @@ class ShoppingApi: ''' params = { "callname":"GetMultipleItems", - "appid":"scottbea-xlister-PRD-6796e0ff6-14862949", + "appid":config.cfg['SECURITY-APPNAME'], "version":"671", "responseencoding":"JSON", "ItemID":twenty_id,