anapaulagomes / anapaulagomes/peneira

Add support to CORE API registered API KEY

Aberta
#21 0 comentários 0 reações 0 responsáveis Ver no GitHub
sources
Linguagem predominante
Python
Estrelas
1
Forks
1
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

References:
https://api.core.ac.uk/docs/v3#section/Rate-limits

* Registered Personal users: 10,000 tokens per day, maximum 10 per minute
* Registered Academic (Supporting / Sustaining members) and Non-academic users: 200k tokens per day
* Monitor your current api limit by looking for our customised HTTP headers: `X-RateLimitRemaining`, `X-RateLimit-Retry-After`, `X-RateLimit-Limit`

What needs to be done here:

- [ ] Read the API Key from the env var
- [ ] If there is a key, increase the rate limits to a maximum of 10 per minute
- [ ] If there is a key, check the headers, calculate if it is close to the limit and show warning messages

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.