Skip to main content

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

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 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.get_title()}")
        print(f"URL: {video.get_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.0.1.tar.gz (4.1 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.0.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yt_finder-1.0.1.tar.gz
  • Upload date:
  • Size: 4.1 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.0.1.tar.gz
Algorithm Hash digest
SHA256 42e6454e1ed00b2f3de6c7d74b137fd7b5b65dcddb9290feb1c97f9f266597fe
MD5 6a6ef8a331aa3bdd39ff182d4f9d78cd
BLAKE2b-256 6acedb1211985d687df10e380d08ebb35372e91e79652572795b6240de3bff62

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yt_finder-1.0.1-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

Hashes for yt_finder-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 50bc8e00128dd97f10f6cc0dd0ed5a4fd4b0a9256854cab433f851aa3dd9fab6
MD5 2531590e82d60fcf5cbb4af8c15d70a4
BLAKE2b-256 cbd67b346a15232fb180abec059f10971c2b1305406f09956590e1613b2338ee

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