Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

youtubemusic-2025.8.19.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

youtubemusic-2025.8.19-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file youtubemusic-2025.8.19.tar.gz.

File metadata

  • Download URL: youtubemusic-2025.8.19.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for youtubemusic-2025.8.19.tar.gz
Algorithm Hash digest
SHA256 7518e16948da2db06e105493bf184d2703f57dcb6388319e3eb01e1d11750361
MD5 a905daae75ecbb3754663acbd6d83705
BLAKE2b-256 d6e5a0779666b986b8eef022eb31cae93f291588dcc61a36314b0647f2162ea0

See more details on using hashes here.

File details

Details for the file youtubemusic-2025.8.19-py3-none-any.whl.

File metadata

File hashes

Hashes for youtubemusic-2025.8.19-py3-none-any.whl
Algorithm Hash digest
SHA256 9b11abe6ff15bf096d09f512007393e8dd5dcd690f20d6d45ab5304b5e824bb8
MD5 f9295026c35d5d623911b4074cebda31
BLAKE2b-256 c944599e646b2223867ba56e69a25ff9304e6dbd14e4ae5123571808219b3efe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page