This is a simple script to read movies data (title&year) from CSV, get their rating from IMDB through OMDB API, and write down the list, sorted by rating. Parallelizing is done through Celluloid
CSV
omdb https://github.com/jvanbaarsen/omdb
celluloid
Get ruby and gems if you still haven't - http://rubyinstaller.org/
Download omdb https://github.com/jvanbaarsen/omdb
$ gem install celluloid
$ cd omdb_folder
$ gem build omdb.gemspec
$ gem install omdb-1.0.4.gem
input file format - CSV file, including title, year (optional) (sample input)[https://drive.google.com/file/d/0B-mR_eT8iE68NU1JcEMycmJ4R00/view]
output - title year -- rating
$ ruby imdbParser.rb input.csv
$ ruby imdbParser.rb input.csv output.txt
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request