The program analyzes movies.csv
in the /data
directory and parses movie titles, release years, and genres. Then it organizes all the genres into a hash table. It prints out genres in descending order by the total number of movies in the genre.
A JSON file is then created with parsed genre data and a web page is launched that graphs the data using Google Charts.
The CSV file must be from https://grouplens.org/datasets/movielens/latest/ or have the same structure.
- Java 8
- GSON (jar in lib folder)
- Google Charts (using CDN)
- Javascript (ES6+ compatible browser)
git clone https://github.com/aziz512/movie-genres.git
cd movie-genres
chmod +x run.sh
(for *nix systems)./run.sh
(*nix) OR./win_run.sh
(Windows)- Enjoy outputs. A webpage will open with a chart. In the console there will be text output.
- Code is saved into the
src
folder. - Data is parsed from the csv file in the
data
folder. - Output is printed in the console and displayed in a web page