Perform YouTube video searches without the API. Fork of youtube-search
Project description
yt_search - Fork of youtube-search
Python function for searching for youtube videos to avoid using their heavily rate-limited API
To avoid using the API, this uses the form on the youtube homepage and scrapes the resulting page.
Example Usage
For a basic search (and all of the current functionality), you can use the search tool as follows:
pip install yt-search
from yt_search import YoutubeSearch
import asyncio
async def main():
search = YoutubeSearch("python", max_results=5, language="en", region="US")
videos = await search.search()
for video in videos:
print("=" * 20)
print(f"Title: {video['title']}")
print(f"URL: {video['yt_url']}")
print("=" * 20)
if __name__ == "__main__":
asyncio.run(main())
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_finder-1.0.0.tar.gz.
File metadata
- Download URL: yt_finder-1.0.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
782b5c211d4f6330ab523b0dc53f16562638a8873b8eacfdef75955d6da14dd3
|
|
| MD5 |
e4abac091f235d62963d844a63b9dec4
|
|
| BLAKE2b-256 |
428942cc7cc85be5bbaccbde977c4bb35a7d8501122d735061acdc9460331414
|
File details
Details for the file yt_finder-1.0.0-py3-none-any.whl.
File metadata
- Download URL: yt_finder-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
106006b873f56a65ec9c0fdb7c376d718d3419d62fa16faceb0de87c803849c8
|
|
| MD5 |
132259d65b2f08539cc432010a8eafe5
|
|
| BLAKE2b-256 |
a5682726a4d03d73a0be949acce6bc8522d861ea9964bca6bfff37d0d4398745
|