python-amazon-paapi icon indicating copy to clipboard operation
python-amazon-paapi copied to clipboard

Feature: Filter only necessary resource parameters

Open beped opened this issue 9 months ago • 2 comments

It would be great for the api to filter only necessary parameters.

Describe the solution you'd like Just like the official paapi : items_response = amazon.get_items(asin_list, resources=[RESOURCES LIST])

Example: items_response = amazon.get_items(asin_list, resources=[Images.Primary.Medium, ItemInfo.ContentInfo, ItemInfo.Title])

Why: This would significatly decrease the response payload, turning the process of data parse and network consume more lightweight

beped avatar May 15 '24 00:05 beped

Second this request! Tried to add this myself to make a pull request but haven't been able to figure it out

gsalkin avatar Jun 24 '24 18:06 gsalkin

This is possible like this:

items_response = amazon.get_items(asin_list, get_items_resource=["ItemInfo.Title"])

mahinkhan-commits avatar Sep 22 '24 09:09 mahinkhan-commits