Skip to main content

Perform YouTube video searches without the API. Fork of the youtube-search library.

Project description

yt_finder - 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 more examples, see the examples folder

For a basic search (and all of the current functionality), you can use the search tool as follows:

pip install yt-search

from yt_finder 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


Download files

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

Source Distribution

yt_finder-1.1.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

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

yt_finder-1.1.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file yt_finder-1.1.0.tar.gz.

File metadata

  • Download URL: yt_finder-1.1.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for yt_finder-1.1.0.tar.gz
Algorithm Hash digest
SHA256 afd54f999ddc0f81f865290017928f2cc97e047d6f65c5f5f5ed8585b08cbcc8
MD5 63bf765b346be1408c661155582cc885
BLAKE2b-256 09bb7c005a6b44fa74fe4656865d094ddb33c17f75dc5dc37aa3745612d386f1

See more details on using hashes here.

File details

Details for the file yt_finder-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: yt_finder-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for yt_finder-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 77ab2f2b967819f3bff117c50b8adce6e88501818a01915651390481d0fbf86d
MD5 ba059841a21027fdcd35ba32f9274263
BLAKE2b-256 42b18775203d4a576281108a439604ee958ec375281fd4d25aded4e0da400a17

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