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"],
"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-7.0.0.tar.gz
(28.9 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-7.0.0.tar.gz.
File metadata
- Download URL: youtubemusic-7.0.0.tar.gz
- Upload date:
- Size: 28.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e8fb7b41284213cdd5b1cbf93c2da25e2727000a336e86ac24e44894611f528
|
|
| MD5 |
e7df90118adb41f11886c5a117f8e009
|
|
| BLAKE2b-256 |
efd94c421b50700654b836927e4365d12585945ab5ba59febe51d45d12fdcb91
|
File details
Details for the file youtubemusic-7.0.0-py3-none-any.whl.
File metadata
- Download URL: youtubemusic-7.0.0-py3-none-any.whl
- Upload date:
- Size: 31.5 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 |
320b77da849e18360e5539707c1c4f78d942f8d9e74e00ce0fc50d2859142e0d
|
|
| MD5 |
e003334b1e37a55b473493b6f2022440
|
|
| BLAKE2b-256 |
f09b23fc610e1378a2497023256c15d811db8053167083b04fc127d3964498e2
|