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-2026.2.3.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

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

youtubemusic-2026.2.3-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for youtubemusic-2026.2.3.tar.gz
Algorithm Hash digest
SHA256 3be02ee3e16a391bffb14a49e225f83b0fccea57d824c68c13e52a6aab66816f
MD5 6edcf16560df35f5b20f5303c123eb4e
BLAKE2b-256 56c4f55e0f3cee6fadfb2dc272e2de133ab51574c9a3a91dde137eb770548177

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for youtubemusic-2026.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b95b562208e00e855831fb19136d3677a4493d1d2987c6e8788983bf1042cad5
MD5 552059c390dac342cef9bdfdf3f72cf1
BLAKE2b-256 520ea6247e03c0d226b991f20ff765c0fded3359cec7527e3caa4614b51b6a7d

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