question

sergkenya avatar image
0 Likes"
sergkenya asked ·

GetSuggestedCategories for a other than US site

Hello, I need to get suggested categories for my items. However, when I make a request I got a reply for US site. How to get it for UK? my code: 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) And then I get this: {'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'} {'Category': {'CategoryID': '159109', 'CategoryName': 'Men', 'CategoryParentID': ['888', '159049', '21214', '159113', '21218'], 'CategoryParentName': ['Sporting Goods', 'Team Sports', 'Football', 'Clothing, Shoes & Accessories', 'Clothing']}, 'PercentItemFound': '2'} This is for US, I need same, but for UK site.
pythonebaysdkgetsuggestedcategories
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

· Write an Answer

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.