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.25.tar.gz
(11.2 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.25.tar.gz.
File metadata
- Download URL: youtubemusic-2026.2.25.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d9cead7bd1fc2d0b76aae4978baea859eb17cff4a4b8d15cea2f11ec10cd649
|
|
| MD5 |
847a76c455713d6060a25d0f5ed707f8
|
|
| BLAKE2b-256 |
4fa59a721a2c1eddf473f6e9930e2b44634746efc1def9401493b0fbd550036e
|
File details
Details for the file youtubemusic-2026.2.25-py3-none-any.whl.
File metadata
- Download URL: youtubemusic-2026.2.25-py3-none-any.whl
- Upload date:
- Size: 14.4 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 |
d0ff7d9e90de9c6c576e320cbb93fc151c6128959ec2b0944965067b06c31c70
|
|
| MD5 |
3ba788e77666aa2dca2d2682b750f8a1
|
|
| BLAKE2b-256 |
4b0a5d955ed8f643c19a73c8c18c81ec0f3fc4bedd368b55a20a8942502c35d6
|