Browsing deals (api.deals) not work with deals_parms?
JohnDoe15152 opened this issue · 2 comments
Hello
Im new with keepa api . Since few weeks, i don't make a correct request with browsing deal (api.deals). It seems deals_params not work on request. When i put same params in keepa web page, asins are not the same with asins present on keepa webpage.
Anyone have an idea why is not correct?
Sorry for my poor english, thanks you!
Here is my code with link associated:
import keepa
api = keepa.Keepa('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')
deal_parms = {
"page": 0,
"domainId": 4,
"excludeCategories": [],
"includeCategories": [],
"priceTypes": [18],
"deltaRange": [0, 2147483647],
"deltaPercentRange": [70, 2147483647],
"salesRankRange": [-1,-1],
"currentRange": [0, 2147483647],
"minRating": -1,
"isLowest": False,
"isLowestOffer": False,
"isOutOfStock": False,
"titleSearch": "",
"isRangeEnabled": True,
"isFilterEnabled": True,
"filterErotic": False,
# "singleVariation": True,
"hasReviews": False,
# "isPrimeExclusive": False,
# "mustHaveAmazonOffer": False,
# "mustNotHaveAmazonOffer": False,
"sortType": 1,
"dateRange": 0,
# "warehouseConditions": [2,3,4,5]
# "hasAmazonOffer": True,
# "isHighest": False,
# "isRisers": False,
# "domainId12643250011": "1",
# "domainId11044456": "1",
"deltaLastRange": []}
products_out = api.deals(deal_parms, domain='FR')
print(products_out[:170])
With request api.deals, i obtain this five asins:
['B09FLZVLT1', 'B08RS2DTFR', 'B0B57QLYBT', 'B0933CJ9K9', 'B09DKPZWW2']
But on webpages, its not these five first asins
Identified the issue and it will be fixed in #122 and included in the next release.