PyLyrics-Extractor icon indicating copy to clipboard operation
PyLyrics-Extractor copied to clipboard

Number of queries per day

Open swaradgat19 opened this issue 4 years ago • 1 comments

In the current version, it limits the number of requests to 100 per day. However, there is something called a Custom Search Site Restricted JSON API. This has no limits per day. Would love to see it integrated! Love the library tho :)

Link for restricted api : https://developers.google.com/custom-search/v1/site_restricted_api

swaradgat19 avatar May 11 '21 20:05 swaradgat19

Just went through the code. Saw that you have implemented the restricted one itself. Could you tell why this error might be occuring?

LyricScraperException: {'error': {'code': 429, 'message': "Quota exceeded for quota metric 'Site Restricted Queries' and limit 'Site Restricted Queries per day' of service 'customsearch.googleapis.com' for consumer 'project_number:451270028559'.", 'errors': [{'message': "Quota exceeded for quota metric 'Site Restricted Queries' and limit 'Site Restricted Queries per day' of service 'customsearch.googleapis.com' for consumer 'project_number:451270028559'.", 'domain': 'global', 'reason': 'rateLimitExceeded'}], 'status': 'RESOURCE_EXHAUSTED'}}

swaradgat19 avatar May 11 '21 20:05 swaradgat19