Exemplo n.º 1
0
 def test_findItemsIneBayStores(self):
     result = findItemsIneBayStores(
                       keywords=keywords, \
                       storeName=storeName, \
                     affiliate=affiliate, \
                     buyerPostalCode=buyerPostalCode, \
                     paginationInput=paginationInput, \
                     sortOrder=sortOrder, \
                       asctFilter=aspectFilter, \
                     domainFilter=domainFilter, \
                       emFilter=itemFilter, \
                       outputlector=outputSelector, \
                       encoding=encoding)
     root = etree.fromstring(result)
     ack = root.find("{http://www.ebay.com/marketplace/search/v1/services}ack").text
     self.assertEqual(ack, "Success")
     #Number of Items between 0 and 10, because of paginationInput
     res_items = root.find("{http://www.ebay.com/marketplace/search/v1/services}searchResult")
     self.assertTrue(0 <= len(res_items) <= 10)
Exemplo n.º 2
0
 def test_findItemsIneBayStores(self):
     result = findItemsIneBayStores(
                       keywords=keywords, \
                       storeName=storeName, \
                       affiliate=affiliate, \
                       buyerPostalCode=buyerPostalCode, \
                       paginationInput=paginationInput, \
                       sortOrder=sortOrder, \
                       aspectFilter=aspectFilter, \
                       domainFilter=domainFilter, \
                       itemFilter=itemFilter, \
                       outputSelector=outputSelector, \
                       encoding=encoding)
     root = etree.fromstring(result)
     ack = root.find("{http://www.ebay.com/marketplace/search/v1/services}ack").text
     self.assertEqual(ack, "Success")
     #Number of Items between 0 and 10, because of paginationInput
     res_items = root.find("{http://www.ebay.com/marketplace/search/v1/services}searchResult")
     self.assertTrue(0 <= len(res_items) <= 10)
Exemplo n.º 3
0
from ebay.finding import getSearchKeywordsRecommendation, findItemsByKeywords, findItemsByCategory, findItemsAdvanced, findItemsByProduct, findItemsIneBayStores, getHistograms

print getSearchKeywordsRecommendation(encoding="XML", keywords="acordian")
print findItemsByKeywords(keywords="ipod")
print findItemsByCategory(categoryId="123")
print findItemsAdvanced()
print findItemsByProduct(productId="123")
print findItemsIneBayStores()
print getHistograms(categoryId="12")