Skip to content

Commit ea838b1

Browse files
committed
Removed 10 pages limit
1 parent 0282d79 commit ea838b1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

amazon/paapi.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ def search_products(self, item_count=10, item_page=1, items_per_page=10, keyword
228228
raise AmazonException('ValueError', 'Arg items_per_page should be between 1 and 10')
229229
if item_count > 100 or item_count < 1:
230230
raise AmazonException('ValueError', 'Arg item_count should be between 1 and 100')
231-
if item_page > 10 or item_page < 1:
232-
raise AmazonException('ValueError', 'Arg item_page should be between 1 and 10')
231+
if item_page < 1:
232+
raise AmazonException('ValueError', 'Arg item_page should be 1 or higher')
233233
if not keywords and not actor and not artist and not author and not brand and not title:
234234
raise AmazonException('ValueError', 'At least one of the following args must be '
235235
'provided: keywords, actor, artist, author, brand,'
@@ -333,8 +333,8 @@ def get_variations(self, asin, item_count=10, item_page=1, items_per_page=10, co
333333
raise AmazonException('ValueError', 'Arg items_per_page should be between 1 and 10')
334334
if item_count > 100 or item_count < 1:
335335
raise AmazonException('ValueError', 'Arg item_count should be between 1 and 100')
336-
if item_page > 10 or item_page < 1:
337-
raise AmazonException('ValueError', 'Arg item_page should be between 1 and 10')
336+
if item_page < 1:
337+
raise AmazonException('ValueError', 'Arg item_page should be 1 or higher')
338338

339339
results = []
340340
while len(results) < item_count:

0 commit comments

Comments
 (0)