Get music lyrics
Project description
Welcome to the Cypher. Blog post [here](https://tmthyjames.github.io/tools/Cypher/)
=======================
Easily get music lyrics
To install, use `pip`:
`pip install thecypher`
Example:
```python
>>> 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:
```python
>>> import pandas as pd
>>> coasts_df = pd.DataFrame(coasts)
>>> coasts_df.head()
```
<table border="1" class="dataframe">
<thead>
<tr style="text-align: right">
<th></th>
<th>album</th>
<th>artist</th>
<th>genre</th>
<th>id</th>
<th>lyric</th>
<th>song</th>
<th>year</th>
</tr>
</thead>
<tbody>
<tr>
<th>0</th>
<td>Coasts (2016)</td>
<td>coasts</td>
<td>Indie_Pop</td>
<td>0</td>
<td>We fell in love</td>
<td>Oceans</td>
<td>2016</td>
</tr>
<tr>
<th>1</th>
<td>Coasts (2016)</td>
<td>coasts</td>
<td>Indie_Pop</td>
<td>1</td>
<td>Right by the ocean</td>
<td>Oceans</td>
<td>2016</td>
</tr>
<tr>
<th>2</th>
<td>Coasts (2016)</td>
<td>coasts</td>
<td>Indie_Pop</td>
<td>2</td>
<td>Made all our plans</td>
<td>Oceans</td>
<td>2016</td>
</tr>
<tr>
<th>3</th>
<td>Coasts (2016)</td>
<td>coasts</td>
<td>Indie_Pop</td>
<td>3</td>
<td>Down on the sand</td>
<td>Oceans</td>
<td>2016</td>
</tr>
<tr>
<th>4</th>
<td>Coasts (2016)</td>
<td>coasts</td>
<td>Indie_Pop</td>
<td>4</td>
<td>And from the tips of your fingers</td>
<td>Oceans</td>
<td>2016</td>
</tr>
</tbody>
</table>
=======================
Easily get music lyrics
To install, use `pip`:
`pip install thecypher`
Example:
```python
>>> 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:
```python
>>> import pandas as pd
>>> coasts_df = pd.DataFrame(coasts)
>>> coasts_df.head()
```
<table border="1" class="dataframe">
<thead>
<tr style="text-align: right">
<th></th>
<th>album</th>
<th>artist</th>
<th>genre</th>
<th>id</th>
<th>lyric</th>
<th>song</th>
<th>year</th>
</tr>
</thead>
<tbody>
<tr>
<th>0</th>
<td>Coasts (2016)</td>
<td>coasts</td>
<td>Indie_Pop</td>
<td>0</td>
<td>We fell in love</td>
<td>Oceans</td>
<td>2016</td>
</tr>
<tr>
<th>1</th>
<td>Coasts (2016)</td>
<td>coasts</td>
<td>Indie_Pop</td>
<td>1</td>
<td>Right by the ocean</td>
<td>Oceans</td>
<td>2016</td>
</tr>
<tr>
<th>2</th>
<td>Coasts (2016)</td>
<td>coasts</td>
<td>Indie_Pop</td>
<td>2</td>
<td>Made all our plans</td>
<td>Oceans</td>
<td>2016</td>
</tr>
<tr>
<th>3</th>
<td>Coasts (2016)</td>
<td>coasts</td>
<td>Indie_Pop</td>
<td>3</td>
<td>Down on the sand</td>
<td>Oceans</td>
<td>2016</td>
</tr>
<tr>
<th>4</th>
<td>Coasts (2016)</td>
<td>coasts</td>
<td>Indie_Pop</td>
<td>4</td>
<td>And from the tips of your fingers</td>
<td>Oceans</td>
<td>2016</td>
</tr>
</tbody>
</table>
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
thecypher-1.2.2.tar.gz
(22.1 MB
view hashes)
Built Distribution
Close
Hashes for thecypher-1.2.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17347d89292a0cf1068a8f734048e32ba43d0d6783fec2bbb24d02b362dbccdd |
|
MD5 | 437a800a7ea9cca180f6aa7b95680b79 |
|
BLAKE2b-256 | fcb0988b0cc203e03faa840f896d349d13242cefefe4886f1ad8c34a109b12e2 |