1

アイテムの推奨カテゴリを取得する必要があります。しかし、私がリクエストすると、米国のサイトの返信が来ました。英国で入手するにはどうすればよいですか?

私のコード:

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'}
4

1 に答える 1