A YouTube Music Search Package With Artist, Channel, and Video Details
Project description
YouTubeMusic 🔥
A blazing fast YouTube music search module using DuckDuckGo scraping.
Features
- No YouTube API needed ✅
- Fast + lightweight async search engine ⚡
- Perfect for Telegram bots, CLI tools, and more 🎧
Install
pip install YouTubeMusic
How To Install
# Search By YouTube Search API
from YouTubeMusic.YtSearch import Search
# Search Using Httpx And Re
from YouTubeMusic.Search import Search
Example Usage
from YouTubeMusic.Search import Search
#from YouTubeMusic.YtSearch import Search
async def SearchYt(query: str):
results = await Search(query, limit=1)
if not results or not results.get("main_results"):
raise Exception("No results found.")
item = results["main_results"][0]
search_data = [{
"title": item.get("title"),
"artist": item.get("artist_name"),
"channel": item.get("channel_name"),
"duration": item.get("duration"),
"views": item.get("views"),
"thumbnail": item.get("thumbnail"),
"url": item.get("url")
}]
song_url = item["url"]
return search_data, song_url
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
youtubemusic-2026.2.9.tar.gz
(10.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file youtubemusic-2026.2.9.tar.gz.
File metadata
- Download URL: youtubemusic-2026.2.9.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
411d1f9e70783f06805124eb4f77faa5a1b11aa6fc03c3bdc258fd399d3118de
|
|
| MD5 |
05950050dfc22644fbc6e287935badd2
|
|
| BLAKE2b-256 |
ac19e21c229fafa79de43c62ac6e3ce50b888f03d54c2fbdbd5a6424a67eb025
|
File details
Details for the file youtubemusic-2026.2.9-py3-none-any.whl.
File metadata
- Download URL: youtubemusic-2026.2.9-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02ece7896ca413d7eddaa85875f5c4420db69fc2b27835345b533ab497207c9e
|
|
| MD5 |
e7bb5d8700ed390b2774a503a34340e3
|
|
| BLAKE2b-256 |
72e78bba889a0523f9e1c12441cd3c12018a28ca1e69244710e14bcfce4701f5
|