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.
- 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
- Python 3.8 or higher
- Internet connection (for OMDB API)
- Clone the repository
git clone [repository-url]
cd movie-database- Install dependencies
pip install requests python-dotenv- Configure API Key
- Sign up for an API key at OMDB API
- Create a
.envfile in the project root - Add your API key:
OMDB_API_KEY=your_api_key_here
- Initialize storage
echo {} > data.jsonpython main.pyThe application provides the following options:
- Exit - Close the application
- List movies - Display all movies in database
- Add movie - Add a new movie with details from OMDB
- Delete movie - Remove a movie from database
- Update movie - Modify movie rating
- Stats - View statistics about your movie collection
- Random movie - Get a random movie suggestion
- Search movie - Search your local movie database
- Movies sorted by rating - View movies sorted by rating
- Generate Website - Create HTML gallery of your movies
The application generates a responsive HTML website featuring:
- Movie posters
- Title and release year
- IMDb rating
- Plot summary
- Cast and crew information