3 ms·
Not sure why this is big news. There has been a ruby library called imdb-party that I used several years ago to do this: https://github.com/maddox/imdb-party h
by up_and_up 14y ago
Not sure why this is big news.
There has been a ruby library called imdb-party that I used several years ago to do this: https://github.com/maddox/imdb-party https://github.com/maddox/imdb-party. Leverages the IMDB iOS API also.
Here is part of the code I used for simulating their id system (ex: tt0903624):
# http://www.imdb.com/title/tt0903624/ http://www.imdb.com/title/tt0903624/
require "imdb_party"
imdb = ImdbParty::Imdb.new
all_movies = (1..999999).map{ |m| "tt" + ("%07d" % m).to_s }
(all_movies - current_movies).each do |movie_id|
movie = imdb.find_movie_by_id(movie_id) rescue next