joalla / discogs_client

Continuation of the "Official Python Client for the Discogs API"
https://python3-discogs-client.readthedocs.io
Other
309 stars 50 forks source link

What is most efficient way to filter a users's inventory? #146

Closed ForceConstant closed 2 months ago

ForceConstant commented 6 months ago

Lets say I want to get a list of all the "Vinyl" a user has in their inventory. I can loop through user.inventory and check if Format == "Vinyl" but this uses the API for each one, and for most sellers they can have 1000's so that would take a long time. Is there an faster way to get this data? Like first being able filter for the format and/or genre?

Thanks.

JOJ0 commented 6 months ago

Sorry no good news, I think it's the only way. It takes time...

JOJ0 commented 6 months ago

This is the docs of the API endpoint being used in p3dc: https://www.discogs.com/developers#page:marketplace,header:marketplace-inventory

In case you find something you need that is not supported in our client yet, please open a feature request issue!