This project is a movie recommendation system that scrapes movie from the web, and creates a ratings matrix based on user preferences and movie genres.
To get started with this project, follow these steps:
Clone the repository:
git clone https://github.com/AReyH/movierec.git
Navigate to the project directory:
cd movierec
Create a conda environment from the provided environment.yml file:
conda env create -f environment.yml
Activate the conda environment:
conda activate movierec
Run the main scripts to generate movie features and ratings matrix:
python scrape_movie_links.py
python scrape_movie_genres.py
python create_movie_features.py
python ratings_matrix.py
The project consists of the following main components:
scrape_movie_links.py
: Scrapes movie links from a given URL and saves them to a JSON file.scrape_movie_genres.py
: Scrapes movie genres for a list of movie links and saves them to a JSON file.create_movie_features.py
: Creates a movie features DataFrame based on movie genres and saves it to a CSV file.ratings_matrix.py
: Generates a ratings matrix based on movie genres and user preferences and saves it to a CSV file.
Each script can be run independently with appropriate input data. Ensure that the required input files are available before running the scripts.
This project is licensed under the MIT License - see the license file file for details.