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.1.0.tar.gz
(27.0 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.1.0.tar.gz.
File metadata
- Download URL: youtubemusic-6.1.0.tar.gz
- Upload date:
- Size: 27.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66b3a0fcab18bda2dd3d5c986c4dfda129e485d40f2c486219479d909776623f
|
|
| MD5 |
47505c33c17487094f6cc47c59c46aef
|
|
| BLAKE2b-256 |
2a19cddcb459723510cb5f4e1cd60582f3e879d11d1d95d464fe293904da1dd0
|
File details
Details for the file youtubemusic-6.1.0-py3-none-any.whl.
File metadata
- Download URL: youtubemusic-6.1.0-py3-none-any.whl
- Upload date:
- Size: 29.0 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 |
19ab509e0fb57b855ef5ab0511c8dc6e9ab576005880bc807b6718151117fef7
|
|
| MD5 |
f8c68e741892141207b192796c62b401
|
|
| BLAKE2b-256 |
487446cda322a581e24515944ce90b9c3f88b0abbc71313a4f6ecfc530686dcb
|