techcatchers / pylyrics-extractor Goto Github PK
View Code? Open in Web Editor NEWGet Lyrics for any songs by just passing in the song name (spelled or misspelled) in less than 2 seconds using this awesome Python Library.
License: MIT License
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.
License: MIT License
I thought this project will extract lyrics from mp3 files using neural networks, bit it only search for lyrics in the Internet ((
I've been using this wrapper in a ubuntu vps so because of this I had to remove genius lyrics website from my search engine, this gave the opportunity to rest of the sites to provide lyrics but it seems that all those sites are hindi lyrics sites. I request to add some more websites to fetch english lyrics or is there any way to get English lyrics from those sites?
This is my code:
from lyrics_extractor import SongLyrics
extract_lyrics = SongLyrics('AIzaSyC5sQ2alM11wY43kmUYvAcPPAVU1Ww9weo', 'f2904a23add534b8d')
lyrics = extract_lyrics.get_lyrics("Shape of You")
print(lyrics['title'])
print(lyrics['lyrics'])
But it doesn't work. It gives this error:
Traceback (most recent call last):
File "main.py", line 4, in
lyrics = extract_lyrics.get_lyrics("Shape of You")
File "/home/runner/LyricsBot/venv/lib/python3.10/site-packages/lyrics_extractor/lyrics.py", line 195, in get_lyrics
raise LyricScraperException({"error": "No results found"})
lyrics_extractor.lyrics.LyricScraperException: {'error': 'No results found'}
I followed the intructions of this website as closely as I could: [Lyrics-extractor_3.0.1]
(https://populyrics.com/)
With pip install lyrics-extractor, I've already installed the library.
The API Key and Engine ID have both been verified, and they are both accurate.
I tried other song titles. Same results.
What may the issue be?
the code that I ran:
from lyrics_extractor import SongLyrics
apiKey = 'AIzaSyD0wLKKCF8h8P9RcFKeuBvrsCttZjbs_wY'
engineID = 'ee477aa93a682'
extract_lyrics = SongLyrics(apiKey, engineID)
lyrics = extract_lyrics.get_lyrics('shape of you')
raises exception here^^
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
Exact same problem as the guy below me
please fix I have to show off my final project for my computer science class tomorrow and it is very reliant on this.
On line:
extract_lyrics = Song_Lyrics(GCS_API_KEY, GCS_ENGINE_ID)
Getting below error:
HTTPSConnectionPool(host='www.googleapis.com', port=443): Max retries exceeded with url: /customsearch/v1/siterestrict?key=XXXXXX&q=summer%20of%2069%20lyrics (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),))
Can you please advise
Lyrics Extractor is not giving any output for query, even tough i have a all websites. Seems like sites have changed their API 🤔.
Can you Look into it
I need this for my Discord Bot so I can create a lyrics command, the code works when I use it on my pc but in the command, it does not work as expected. Always raises
lyrics_extractor.lyrics.LyricScraperException: {'error': 'No results found'}
Message from google:
Note: As of 2023-10-05, new customers attempting to make requests to the Custom Search Site Restricted JSON API will receive a 403 error message response. This does not affect existing customers or our other API products. For additional information, please see the blog post.
We encourage all site search partners - prospective and existing - to explore Google Cloud's Vertex AI Search for their site search needs. You can find transition guidance here.
this means that new accounts will not be able to use this project :p
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.