The YouTube Music search scraper for the Python programming language.
Project description
YouTube Music API
The YouTube Music search scraper for the Python programming language.
Installation:
- Python 3.7 or later is required.
- First, please make sure that the latest pip version is installed in your working environment.
pip install -U pip
- Run the following command given below to install the package:
pip install -U YouTubeMusicAPI
Get Started
Here is an example program.
import YouTubeMusicAPI
query: str = "alan walker faded"
result = YouTubeMusicAPI.search(query)
if result:
print(result)
else:
print("No Result Found")
If a result for your search query is found while running the above program, it will return an dict object {"title":"...", "id": "...", "url": "...", "artwork": "...", "author": {"name": "...", "url": "..."}}
; otherwise, it will return None.
License
This Python package is licenced under the MIT License.
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
YouTubeMusicAPI-2.7.3.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for YouTubeMusicAPI-2.7.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 325279152b2f342f2e6dd214dfc4030c7faef2f235c720e0bcf9fa1027b95cea |
|
MD5 | 5d842b65ccb85ee64f0930225b25ce19 |
|
BLAKE2b-256 | b3b85167fa25c84b3db05245d68bf087aab4b635183166b7fa4a82df4868b7b6 |