Skip to content

How to avoid tons of API calls - by design or my mistake? #77

Answered by JOJ0
kftb asked this question in Support
Discussion options

You must be logged in to vote

Thanks a lot @AnssiAhola, I justed tested your suggestion with requests debugging enabled. It seems on first access of suggestionsit fetches but then uses stuff from the variable:

>>> suggestions = results[0].price_suggestions
>>> print(suggestions.poor.value)
send: b'GET /marketplace/price_suggestions/37105?token=secret HTTP/1.1\r\nHost: api.discogs.com\r\nUser-Agent: Testclient\r\nAccept-Encoding: gzip\r\nAccept: */*\r\nConnection: keep-alive\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Date: Tue, 08 Feb 2022 07:19:42 GMT
header: Content-Type: application/json
header: Transfer-Encoding: chunked
header: Connection: keep-alive
header: Vary: Accept-Encoding
header: X-Discogs-Ratelimit: 60…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@kftb
Comment options

@JOJ0
Comment options

@AnssiAhola
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by kftb
Comment options

You must be logged in to vote
1 reply
@kftb
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants