A Python library to perform YouTube video searches without the official API. Version 2.2.0 is the latest stable release. It uses web scraping to retrieve search results, so it may break with YouTube changes.
pip install youtube-searchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Simple search for 'test' returning up to 10 results as a list of dictionaries.
Update code to use the class-based API: results = YoutubeSearch('query', max_results=10).to_dict()Consider using the official YouTube Data API for production use.
Use .to_dict() to get structured results, or iterate over the object for raw strings.
Upgrade with pip install --upgrade youtube-search and ensure the import is: from youtube_search import YoutubeSearch
Use .to_dict() to get a list of dictionaries, not direct iteration.
Instantiate: results = YoutubeSearch('query', max_results=10).to_dict()No dependency data recorded yet.