Build a YouTube Video Search Tool with Python
Level: Beginner
Project Task
Create a YouTube video search tool that:
Uses the youtube-search-python library to search for videos
Takes a search keyword from the user as input
Retrieves the top 10 most relevant video results
Displays each video’s title in a numbered list
Works without requiring API keys or authentication
Uses a simple, lightweight library for quick searches
Formats the results in a clean, readable format
This project gives you hands-on practice with third-party Python libraries, web scraping concepts, and building search functionality — essential skills for creating content discovery tools.
Expected Output
The script should search YouTube for a given keyword (e.g., dinosaurs) and display the titles of the top 10 videos that show for that keyword:
Join the Python & AI Builders Skool Community
Got questions to ask the author about this project? Join our Python & AI Builders community for weekly Python & AI videos and discussions:
https://skool.com/automateit
Skeleton and Solution
Below you will find both a downloadable skeleton.py file to help you code the project with comment guides and the downloadable solution.py file containing the correct solution.
Get the code skeleton here:
Get the code solution here:



