Techcatchers / PyLyrics-Extractor

Get Lyrics for any songs by just passing in the song name (spelled or misspelled) in less than 2 seconds using this awesome Python Library.
MIT License
52 stars 17 forks source link

Number of queries per day #9

Open swaradgat19 opened 3 years ago

swaradgat19 commented 3 years ago

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 commented 3 years ago

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'}}