Seperate the song and artist name from a song title
Project description
SongNameSplit
The SongNameSplit library can take a song title and identify the song name and artist name. The input taken is a string, and a dictionary gives the output. This library needs to access some web pages while running, which means that the final output time is directly dependent on your internet speed.
Sample Input and Output
Input 1:
"Coldplay - Hymn For The Weekend (Official Video)"
Output 1:
{'artist': 'Coldplay', 'songname': 'Hymn For The Weekend'}
Input 2:
"Dua Lipa - Levitating Featuring DaBaby (Official Music Video)"
Output 2:
{'artist': 'Dua Lipa', 'songname': 'Levitating'}
Installation
SongNameSplit can be installed using the following pip code. Please note that the SongNameSplit library is internet-dependent, so a stable internet connection is essential.
pip install SongNameSplit
Import
SongNameSplit can be imported using the following code:
import SongNameSplit
Usage
SongNameSplit can be used as:
SongNameSplit.namesplit("<< SONG TITLE >>")
Replace the "<< SONG TITLE >>" with your song title.
Sample Code
import SongNameSplit
result = SongNameSplit.namesplit("Coldplay - Hymn For The Weekend (Official Video)")
print("The name of the song is: ", result['songname'])
print("The name of the artist is: ", result['artist'])
Made by
Archit Tandon.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for SongNameSplit-1.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb3ac7659da112b2f8aa1d3a817dd34a301e5d09a2d070b00e3b01183ae34ce4 |
|
MD5 | 73520b0dd1cdd8515c482594b44e1e86 |
|
BLAKE2b-256 | 791435ba2d411eb3fc314c8dc62fed2e41093c7bf89a3e1ac9b50f5b2ef20f54 |