Skip to content

amirdhs/MovieProject_with_OOP

Repository files navigation

Movie Database Application

A Python application for managing your movie collection. Features include fetching movie details from OMDB API, local storage management, and HTML website generation for your movie library.

Features

  • Add, update, and delete movies
  • Fetch detailed movie information from OMDB API
  • Search movies in local database
  • Generate responsive HTML movie gallery
  • View movie statistics
  • Random movie selector
  • Sort movies by rating
  • Support for both JSON and CSV storage

Getting Started

Prerequisites

  • Python 3.8 or higher
  • Internet connection (for OMDB API)

Installation

  1. Clone the repository
git clone [repository-url]
cd movie-database
  1. Install dependencies
pip install requests python-dotenv
  1. Configure API Key
  • Sign up for an API key at OMDB API
  • Create a .env file in the project root
  • Add your API key:
OMDB_API_KEY=your_api_key_here
  1. Initialize storage
echo {} > data.json

Running the Application

python main.py

Usage

The application provides the following options:

  1. Exit - Close the application
  2. List movies - Display all movies in database
  3. Add movie - Add a new movie with details from OMDB
  4. Delete movie - Remove a movie from database
  5. Update movie - Modify movie rating
  6. Stats - View statistics about your movie collection
  7. Random movie - Get a random movie suggestion
  8. Search movie - Search your local movie database
  9. Movies sorted by rating - View movies sorted by rating
  10. Generate Website - Create HTML gallery of your movies

Generated Website

Go to Movie Website

The application generates a responsive HTML website featuring:

  • Movie posters
  • Title and release year
  • IMDb rating
  • Plot summary
  • Cast and crew information

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors