Lightweight YouTube search library with async support - Search for videos, channels, playlists and get playlist details
Project description
YT Search
A lightweight, modern YouTube search library with async/await support. Search for videos, channels, playlists, and retrieve complete playlist information with ease.
Features
✨ Search Functionality
- 🎥 Search for videos with filters
- 👤 Search for channels
- 📝 Search for playlists
- 🔍 Custom search with sorting options
- 🔄 Pagination support
✨ Playlist Features
- 📋 Get full playlist information with videos
- ℹ️ Get playlist metadata only
- 🎬 Get playlist videos only
- ♾️ Pagination for large playlists (100+ videos)
✨ Modern API
- ⚡ Async/await support
- 🎯 Type hints
- 🚀 Fast and lightweight
- 🛡️ No API key required
Installation
pip install yt-search-py
Quick Start
Search for Videos
import asyncio
from ytSearch import VideosSearch
async def main():
search = VideosSearch('Python tutorials', limit=5)
result = await search.next()
for video in result['result']:
print(f"{video['title']} - {video['link']}")
asyncio.run(main())
Get Playlist Information
import asyncio
from ytSearch import Playlist
async def main():
# Get full playlist with videos
playlist = await Playlist.get('https://www.youtube.com/playlist?list=PLRBp0Fe2GpgmsW46rJyudVFlY6IYjFBIK')
print(f"Playlist: {playlist['info']['title']}")
print(f"Videos: {len(playlist['videos'])}")
asyncio.run(main())
Requirements
- Python 3.7+
- httpx >= 0.28.1
License
MIT License - see LICENSE file for details.
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
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 yt_search_py-1.1.0.tar.gz.
File metadata
- Download URL: yt_search_py-1.1.0.tar.gz
- Upload date:
- Size: 17.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd2203f7bae1a2252c8af13e7345692a2c8ddcf43665ff78a12457faa3982415
|
|
| MD5 |
fb0e0bb2fe1ec0aad9b30dabe992f0de
|
|
| BLAKE2b-256 |
8d1e139bce22eada3f03ca35d2e4efa11bf82083e34bd0fd3aea6ccaef93b407
|
Provenance
The following attestation bundles were made for yt_search_py-1.1.0.tar.gz:
Publisher:
publish.yml on sparrow9616/yt-search
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
yt_search_py-1.1.0.tar.gz -
Subject digest:
cd2203f7bae1a2252c8af13e7345692a2c8ddcf43665ff78a12457faa3982415 - Sigstore transparency entry: 2135388295
- Sigstore integration time:
-
Permalink:
sparrow9616/yt-search@d727c7006c4e1bf1194419e855ad91e6d0632017 -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/sparrow9616
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d727c7006c4e1bf1194419e855ad91e6d0632017 -
Trigger Event:
release
-
Statement type:
File details
Details for the file yt_search_py-1.1.0-py3-none-any.whl.
File metadata
- Download URL: yt_search_py-1.1.0-py3-none-any.whl
- Upload date:
- Size: 19.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d05346cdb1aaf56a4b4a59989a684e0297407746410b3629f91e38103fe82388
|
|
| MD5 |
de1d9d38e84f21edb9ebccec44268d6e
|
|
| BLAKE2b-256 |
b5fd7b2760ba914560f203207c304ff15bd636acd308cd0258871641cf40faea
|
Provenance
The following attestation bundles were made for yt_search_py-1.1.0-py3-none-any.whl:
Publisher:
publish.yml on sparrow9616/yt-search
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
yt_search_py-1.1.0-py3-none-any.whl -
Subject digest:
d05346cdb1aaf56a4b4a59989a684e0297407746410b3629f91e38103fe82388 - Sigstore transparency entry: 2135388749
- Sigstore integration time:
-
Permalink:
sparrow9616/yt-search@d727c7006c4e1bf1194419e855ad91e6d0632017 -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/sparrow9616
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d727c7006c4e1bf1194419e855ad91e6d0632017 -
Trigger Event:
release
-
Statement type: