reverted back to creds in script. change to config file method
This commit is contained in:
parent
4f46741a0f
commit
627992036a
@ -4,7 +4,6 @@ import concurrent.futures
|
||||
import json
|
||||
import requests
|
||||
import pandas as pd
|
||||
import os
|
||||
|
||||
class FindingApi:
|
||||
'''Methods for accessing eBays FindingApi services'''
|
||||
@ -16,7 +15,6 @@ class FindingApi:
|
||||
][service]
|
||||
self.pageNumber = list(range(1, pageNumber)) # 64 pages is recommended
|
||||
# as this will give equal weights to cats given call constraints
|
||||
self.security_appname = os.environ.get('SECURITY-APPNAME')
|
||||
|
||||
# departments = ["3034","93427"] (womens and mens)
|
||||
|
||||
@ -34,7 +32,7 @@ class FindingApi:
|
||||
|
||||
params = {
|
||||
"OPERATION-NAME":self.service,
|
||||
"SECURITY-APPNAME":self.security_appname,
|
||||
"SECURITY-APPNAME":"scottbea-xlister-PRD-6796e0ff6-14862949",
|
||||
"SERVICE-VERSION":"1.13.0",
|
||||
"RESPONSE-DATA-FORMAT":"JSON",
|
||||
"categoryId":category_id,
|
||||
@ -106,10 +104,9 @@ class ShoppingApi:
|
||||
'''
|
||||
Gets raw JSON data from multiple live listings given multiple itemIds
|
||||
'''
|
||||
finding = FindingApi(4,2)
|
||||
params = {
|
||||
"callname":"GetMultipleItems",
|
||||
"appid":finding.security_appname,
|
||||
"appid":"scottbea-xlister-PRD-6796e0ff6-14862949",
|
||||
"version":"671",
|
||||
"responseencoding":"JSON",
|
||||
"ItemID":twenty_id,
|
||||
|
Loading…
Reference in New Issue
Block a user