Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Filter only necessary resource parameters #128

Open
beped opened this issue May 15, 2024 · 2 comments
Open

Feature: Filter only necessary resource parameters #128

beped opened this issue May 15, 2024 · 2 comments
Labels
feature New feature or request

Comments

@beped
Copy link

beped commented May 15, 2024

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 beped added the feature New feature or request label May 15, 2024
@gsalkin
Copy link

gsalkin commented Jun 24, 2024

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

@mahinkhan-commits
Copy link

This is possible like this:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants