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-5.0.0.tar.gz
(5.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-5.0.0.tar.gz.
File metadata
- Download URL: youtubemusic-5.0.0.tar.gz
- Upload date:
- Size: 5.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 |
9f7a9f8c81d63325199c3501a29233a3832c334b3b871f95b37ef46b91f05259
|
|
| MD5 |
44c81db9113ebfb1bed07b0a588fcb86
|
|
| BLAKE2b-256 |
11938be528510acebe6ff42f7567366315bd6b8f3bb77871f6e34c196b0fe996
|
File details
Details for the file youtubemusic-5.0.0-py3-none-any.whl.
File metadata
- Download URL: youtubemusic-5.0.0-py3-none-any.whl
- Upload date:
- Size: 6.2 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 |
a1fee3bcbbb36968b92969f8eb033cc69b7d47e9bee86e3e6773f5b1a848fa70
|
|
| MD5 |
1306755a6311424b675414458fa75482
|
|
| BLAKE2b-256 |
a552e7366a71dd27124fb9472d23022d9ba96b85fb616b6dd8b9d6abb06f1ff3
|