Skip to main content

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 youtube-search

from youtube_search import YoutubeSearch

results = YoutubeSearch('search terms', max_results=10).to_json()

print(results)

# returns a json string

########################################

results = YoutubeSearch('search terms', max_results=10).to_dict()

print(results)
# returns a dictionary

Metadata

Release files for youtube-search 2.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for youtube-search 2.2.0
File Size Uploaded
youtube_search-2.2.0.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for youtube-search 2.2.0
File Interpreter ABI Platform
youtube_search-2.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.9 kB

Release files / youtube_search-2.2.0.tar.gz

Download URL youtube_search-2.2.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5398a7cd65d9b75a8bac27ef689ec044abab3cbfa1f20d19db0277659ac70d98
BLAKE2b-256 checksum
How to use checksums
5f13153d6841d0a9850e956f2f99987185c5b8477cc36fbabca24c4acf0321ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.5

Release files / youtube_search-2.2.0-py3-none-any.whl

Download URL youtube_search-2.2.0-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bdffbb5b22d7a7c85a88e6eeb6b00c5b5dbd29ea7b95139d21b8b8dab2ca5871
BLAKE2b-256 checksum
How to use checksums
0f3d7285e86e6390801fb177763a9cf1d81762487f98b3872ab5e1080bb82602
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.5

Release history Release notifications | RSS feed

This release

2.2.0 This release

2 release files

2.1.2

2 release files

2.1.1

2 release files

2.1.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page