Skip to content

Usman5-coder/Youtube-Video-Manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฅ YouTube Video Manager (SQLite + Python)

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.


๐Ÿš€ Features

  • ๐Ÿ“‹ 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).

๐Ÿ“‚ Project Structure

. โ”œโ”€โ”€ youtube_manager.py # Main Python script โ”œโ”€โ”€ youtube_videos.db # SQLite database (auto-created) โ””โ”€โ”€ README.md # Documentation

yaml Copy code


โš™๏ธ Requirements

  • Python 3.x
  • SQLite (comes pre-installed with Python)

โ–ถ๏ธ How to Run

  1. Clone or download this repository.

  2. Open a terminal in the project folder.

  3. 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages