Find the top 20 most rated movies on IMDb in the past three days.
Don't know what to watch? Do this:
-
create a file called twitter4j.properties with these contents:
debug=false oauth.consumerKey=your key oauth.consumerSecret=your secret oauth.accessToken=your access token oauth.accessTokenSecret=your access token secret
If you don't have an app with credentials, get them here.
-
Install Scala Build Tool if you don't have it.
-
From the command line, run:
$ sbt run
This will connect to Twitter and fetch thousands of tweets of the form "I rated Some Movie 7/10 [link to the movie] on #IMDB ..." I'm assuming those tweets are a representative sample of all ratings, but who knows. This is a quick hack, not science.
The program will generate a file called movies.html in the current folder. Open it with your browser, pick a movie to watch, or maybe read a book instead.
Output of this program (could be out of date, check the timestamp).
Copyright © 2013 Diego Basch
Distributed under the Eclipse Public License