我需要为我的项目获取建议的类别。但是,当我提出请求时,我会收到美国网站的回复。英国如何获得它?
我的代码:
from ebaysdk.trading import Connection
api = Connection(config_file="ebay.yaml",
domain="api.ebay.com", debug=True)
response = api.execute('GetSuggestedCategories', {'Query': 'INTERNAZIONALE
1999/2000 AWAY FOOTBALL SHIRT MAGLIA JERSEY NIKE'})
for items in reply.dict()['SuggestedCategoryArray']['SuggestedCategory']:
print(items)
回复:
{'Category': {'CategoryID': '2887', 'CategoryName': 'Soccer-International
Clubs', 'CategoryParentID': ['64482', '24409'], 'CategoryParentName':
['Sports Mem, Cards & Fan Shop', 'Fan Apparel & Souvenirs']},
'PercentItemFound': '89'}
{'Category': {'CategoryID': '2891', 'CategoryName': 'Soccer-National
Teams', 'CategoryParentID': ['64482', '24409'], 'CategoryParentName':
['Sports Mem, Cards & Fan Shop', 'Fan Apparel & Souvenirs']},
'PercentItemFound': '6'}
{'Category': {'CategoryID': '123490', 'CategoryName': 'Men',
'CategoryParentID': ['888', '159049', '20862', '159178', '33485'],
'CategoryParentName': ['Sporting Goods', 'Team Sports', 'Soccer',
'Clothing, Shoes & Accessories', 'Clothing']}, 'PercentItemFound':
'3'}