Skip to content

tmthyjames/cypher

Repository files navigation

Lyrics Wikia has been shut down and this project has been deprecated.

Welcome to the Cypher. Blog post here

Here are a couple other blog posts that use Cypher to get data: Analyzing Rap Lyrics Using Word Vectors and Using Lyrics to Predict Genre

=======================

Easily get music lyrics

To install, use pip:

pip install thecypher

Example:

>>> import thecypher as cy
>>> coasts = cy.get_lyrics('coasts')
>>> coasts[0]
{'album': 'Coasts (2016)',
 'artist': 'coasts',
 'genre': 'Indie_Pop',
 'id': 0,
 'lyric': 'We fell in love',
 'song': 'Oceans',
 'year': '2016'}

Convert it to a pandas DataFrame like so:

>>> import pandas as pd
>>> coasts_df = pd.DataFrame(coasts)
>>> coasts_df.head()
album artist genre id lyric song year
0 Coasts (2016) coasts Indie_Pop 0 We fell in love Oceans 2016
1 Coasts (2016) coasts Indie_Pop 1 Right by the ocean Oceans 2016
2 Coasts (2016) coasts Indie_Pop 2 Made all our plans Oceans 2016
3 Coasts (2016) coasts Indie_Pop 3 Down on the sand Oceans 2016
4 Coasts (2016) coasts Indie_Pop 4 And from the tips of your fingers Oceans 2016

About

Easily retrieve music lyrics

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published