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

🔧 fix(lyrics): update Google Custom Search API endpoint

Open E-B3rry opened this issue 2 years ago • 2 comments

Related issue: #18

The site_restricted_api will soon be dead and can currently only be used by old customers, simple fix using the non restricted one by editing the endpoint url. Tested a typical search engine on my end, restricted to all the websites made to be scraped and all the three tests passed.

E-B3rry avatar Jan 11 '24 14:01 E-B3rry

Thank you for this. It also seems like scrapers from genius don't work well, I fixed it by replacing line 35 in lyrics.py to all_extracts = self.source_code.select('div[class*="Lyrics-sc-"]'). It works for me with the changes in this PR and the before mentioned change at this moment of time.

i-vis avatar Dec 19 '24 06:12 i-vis

@i-vis Can you please raise a PR for the same. I'll merge the same from my other account.

RishabhAcodes avatar Dec 19 '24 06:12 RishabhAcodes