discogs / discogs_client

DEPRECATED - Official Python Client for the Discogs API
http://www.discogs.com/developers
Other
480 stars 132 forks source link

Changing per_page elements to max value? #73

Closed systems-rebooter closed 7 years ago

systems-rebooter commented 7 years ago

Hi!

I am afraid of wasting API calls because of rate_limiting.

One of possible solutions is to change per_page elements to maximum value.

How can I do this on app side without changing self._per_page = 50 value in discogs_client/models.py?

Or maybe there are some better workarounds

Thanks!

rodneykeeling commented 7 years ago

Yes, the current method would be to set the _per_page value on any paginated response object.

e.g.,

rels = ds.artist(1).releases
rels._per_page = 100
systems-rebooter commented 7 years ago

Cool! Thanks, @rodneykeeling