Skip to content

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

License

Notifications You must be signed in to change notification settings

Weever1337/yt-finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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())

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages