sergioteula / python-amazon-paapi

Amazon Product Advertising API 5.0 wrapper for Python 💰
MIT License
228 stars 46 forks source link

Feature: Filter only necessary resource parameters #128

Open beped opened 6 months ago

beped commented 6 months ago

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

gsalkin commented 4 months ago

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

mahinkhan-commits commented 1 month ago

This is possible like this:

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