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:
raise Exception("No results found.")
search_data = []
for item in results:
search_data.append({
"title": item["title"],
"artist": item["artist_name"],
"channel": item["channel_name"],
"duration": item["duration"],
"views": item["views"],
"thumbnail": item["thumbnail"],
"url": item["url"]
})
stream_url = results[0]["url"]
return search_data, stream_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-6.0.0.tar.gz
(2.8 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-6.0.0.tar.gz.
File metadata
- Download URL: youtubemusic-6.0.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39892e33309a9d280927fcbf6c9966975c61d9857a35a4c8b5d89e8c9453acfe
|
|
| MD5 |
f2c392c65dd7e22f923d0ae626496c57
|
|
| BLAKE2b-256 |
d3021e3b3fafadbeb134d788f224b2c627d33c5327bfd5ad58e45a7a5d9a7ba0
|
File details
Details for the file youtubemusic-6.0.0-py3-none-any.whl.
File metadata
- Download URL: youtubemusic-6.0.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4da523daa37dd6cc319ba942cfa45b5092453c91a3c816f86090f8d57f219d6f
|
|
| MD5 |
aba37ba74efe917796144c8fcd1ba0a0
|
|
| BLAKE2b-256 |
ab29b576cf76c04b369f190f464417c3543be9739338e27cfed2b8a3a5bb9255
|