Skip to content

mp3sii/flixster_p3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flixster Ratings

This program exports the user data from flixster and loads it into a json and a CSV. Then the program allows (optional):

  • Store the data into Mongo:
    • Load the data into a local MONGO DB.
    • Match the results to IMDB, by Title and Year using OMDB API. You will have to provide your own API_Key, request it here
      • If the year does not match, or there is an Error Response, those movies, are loaded into an Errors Collection on Mongo to be Fixed.
    • Fix the errors by looking up directly on IMDB on a movie per movie and prompting the user to select the movie

Credits

mmihaljevic for discovering how to retrieve the flixster ratings json location. mmihaljevic core ratings module has been adapted to python 3 and modified as explained before.

Installation

Requires Python 3 0. Clone this repo

  1. Make virtualenv with Python 3 (I recommend using virtualenvwrapper)
mkvirtualenv your_repo -p /usr/local/bin/python3
  1. Install the requirements
pip install requirements.txt
  1. Optional, create a setup.json file in the module root for providing the OMDB API Key, and to modify the mongo defaults (example)
{
  "api_key": "your_api_key",
  "mongo_host": "localhost",
  "mongo_port": 27017,
  "mongo_client": "movies",
  "mongo_movies_collection": "movies",
  "mongo_movies_imdb": "movies_imdb",
  "mongo_movies_error": "movies_imdb_error"
}

Usage

Step 1: Download the user flixster ratings onto a JSON

In terminal, execute python initiate.py <your user>. This will create/replace a ratings.json file on your directory, and a ratings.csv with a subset of the attributes

About

Download personal ratings from Flixster

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages