A simple command-line application to manage a list of YouTube videos using SQLite as the database.
You can add, view, update, and delete videos directly from the terminal.
- ๐ List all videos stored in the database.
- โ Add new videos with name and time.
- โ๏ธ Update existing videos by ID.
- โ Delete videos by ID.
- ๐พ Persistent storage using SQLite (
youtube_videos.db
).
. โโโ youtube_manager.py # Main Python script โโโ youtube_videos.db # SQLite database (auto-created) โโโ README.md # Documentation
yaml Copy code
- Python 3.x
- SQLite (comes pre-installed with Python)
-
Clone or download this repository.
-
Open a terminal in the project folder.
-
Run the script:
python youtube_manager.py
๐ Usage Guide When you run the program, youโll see a menu:
1. List Videos
2. Add Videos
3. Update Videos
4. Delete Videos
5. Exit
1๏ธโฃ List Videos Shows all stored videos:
(1, "My First Video", "10:05")
(2, "Python Tutorial", "25:30")
2๏ธโฃ Add Video Youโll be prompted to enter: Video Name Video Time
Example:
Enter the video Name: Python Crash Course
Enter the video Time: 12:45
3๏ธโฃ Update Video Youโll be prompted to enter: Video ID New Name New Time
4๏ธโฃ Delete Video Enter the ID of the video you want to delete.
5๏ธโฃ Exit Closes the program.
๐ Database Schema
CREATE TABLE IF NOT EXISTS videos (
id INTEGER PRIMARY KEY,
name TEXT NOT NULL,
time TEXT NOT NULL
);
๐ Notes The database file youtube_videos.db is automatically created on first run.
All changes are saved automatically.
The app runs fully in the terminal/command prompt.
๐ License This project is licensed under the MIT License. You are free to use, modify, and distribute it.