Skip to main content

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.

Approximate accuracy: 97% - 99%

This library needs to access some web pages while running, which means that the final output time is directly dependent on your internet speed. However, the BLAZE update, that is on all versions after 2.0.0, will greatly improve speeds.

Example Inputs and Outputs

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

Feel free to copy the following code to test SongNameSplit out!


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'])

NonStandardSongTitle Error

If you recieve the following error, it means that the title that you provided to SongNameSplit does not look like or is not formatted like how titles usually are formatted.


NonStandardSongTitle: This title does not look like a standard title

InternetConnectionError Error

If you recieve the following error, it means that your internet connection is either unstable or dropped while the function was running. Since SongNameSplit has componenets that need to access the internet, it is recommended to use a stable internet connection.


InternetConnectionError: Please make sure you have a stable internet connection


Additional Details

GitHub Link

https://github.com/TandonArchit/SongNameSplit

Made by

Archit Tandon.


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

SongNameSplit-2.1.3.tar.gz (99.3 kB view details)

Uploaded Source

Built Distribution

SongNameSplit-2.1.3-py3-none-any.whl (100.0 kB view details)

Uploaded Python 3

File details

Details for the file SongNameSplit-2.1.3.tar.gz.

File metadata

  • Download URL: SongNameSplit-2.1.3.tar.gz
  • Upload date:
  • Size: 99.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.4 tqdm/4.59.0 importlib-metadata/3.10.0 keyring/22.3.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.8.8

File hashes

Hashes for SongNameSplit-2.1.3.tar.gz
Algorithm Hash digest
SHA256 e3e61c9b70e95c1dfc288bb31bd29ca98509cc507fc24a2646f13f008760d19f
MD5 67f2392d7528cd08872072770db4778f
BLAKE2b-256 d5b3d149700917721ac1ba8b2adc86198684a35ba1da904217b520bba751f0d4

See more details on using hashes here.

File details

Details for the file SongNameSplit-2.1.3-py3-none-any.whl.

File metadata

  • Download URL: SongNameSplit-2.1.3-py3-none-any.whl
  • Upload date:
  • Size: 100.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.4 tqdm/4.59.0 importlib-metadata/3.10.0 keyring/22.3.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.8.8

File hashes

Hashes for SongNameSplit-2.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 80b1073213f0682aa30db4ef4b2bbbf63509455126465955705b599a4891ae12
MD5 04b1c2c32a2157370161fe22780c526f
BLAKE2b-256 0fe600d52548791d98d7e37dc292c1cf0afd63d5550e22860aac7baf33124490

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page