youtube title parse
Parse the title of a YouTube video to try and get artist & song name.
Description
Video titles on YouTube follow no strict format, and so passing the titles directly to music APIs to fetch metadata hardly works. This module attempts to recognize common patterns (using regex) and extract artist and song name.
Installation
To install youtube_title_parse, simply use pipenv (or pip, of course):
pipenv install youtube_title_parse
Usage
CLI
youtube_title_parse comes with a CLI that you can use directly:
$ youtube_title_parse "Seoul - Stay With Us (Official Video)"
Seoul - Stay With Us
Module
You can also import youtube_title_parse as a module.
from youtube_title_parse import get_artist_title
artist, title = get_artist_title("Seoul - Stay With Us (Official Video)")
assert artist == "Seoul"
assert title == "Stay With Us"
Credits
This module is originally a Python3 rewrite of the equivalent npm library, get-artist-title, but adds some extra functionality to catch more patterns.
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
License
youtube-title-parse is made available under the MIT license.
Metadata
Release files for youtube-title-parse 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| youtube_title_parse-1.0.0.tar.gz | 13.5 kB | Without provenance | Details for youtube_title_parse-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| youtube_title_parse-1.0.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for youtube_title_parse-1.0.0-py2.py3-none-any.whl |
Total release size: 23.1 kB
Release files / youtube_title_parse-1.0.0.tar.gz
| Download URL | youtube_title_parse-1.0.0.tar.gz |
|---|---|
| Size | 13.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
350cc055c058e8f639ac7e1cbc67a1fb485a4bb5fcd1f9645d79d1ccc8e3518d
|
|
BLAKE2b-256 checksum How to use checksums |
347259407b949e51e6f174d4b6ceaa175034a66c6b6770285242cc41d8e2c775
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
|
Release files / youtube_title_parse-1.0.0-py2.py3-none-any.whl
| Download URL | youtube_title_parse-1.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
88c9413e9f478affa9152dd234ec55223e4b8785973707f87f67fe1b55f61b85
|
|
BLAKE2b-256 checksum How to use checksums |
a6a4d2fd0eaee9739098afadf71560e817ccd1c057275c3724ec9b8b36fb5c9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
|
Security for youtube-title-parse 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.