Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Download subtitles from OpenSubtitles by IDs, and clean them up a little.
# encoding: UTF-8
require 'iconv'
require 'json'
require 'nokogiri'
# getsub -s i -l eng -t srt tt0055928
def download_movie movie_data
id = movie_data['id']
pipe = IO.popen("getsub -s i -l eng -t srt --force #{ id }")
output = ''
not_downloaded = true
while (line = pipe.gets)
output += "#{ line }\n"
if line.include? '* download'
not_downloaded = false
splits = line.split ' to '
filename = splits[1].strip
end
end
pipe.close
if not_downloaded
puts '============================'
puts output
puts '============================'
else
new_name = filename.gsub('.srt', '') + '.srt'
File.rename filename, new_name
contents = File.read(new_name)
new_contents = ""
contents.each_line do |line|
good_line = true
ic = Iconv.new('UTF-8//IGNORE', 'UTF-8')
line = ic.iconv(line + ' ')[0..-2]
line = line.strip
good_line = false if line == ''
good_line = false if line.match /^[0-9]+$/
good_line = false if line.match /^[0-9]+:[0-9]+:[0-9]+,[0-9]/
good_line = false if line.match /open[ ]?sub/i
# puts line if good_line
new_contents += "#{ line }\n" if good_line
end
doc = Nokogiri::HTML(new_contents)
new_contents = doc.xpath("//text()").remove.to_s
clean_title = movie_data['title'].gsub(/[^0-9a-z ]/i, '')
title_with_dashes = clean_title.gsub(' ', '-')
final_filename = movie_data['year'].to_s + '-' + id + '-' + title_with_dashes + '.txt'
f = File.new(final_filename, 'w')
f.write(new_contents)
f.close
puts "Downloaded as #{ final_filename }"
end
end
contents = File.read('movies.json')
movies = JSON.parse contents
movies.each do |movie|
download_movie movie
end
[
{
"id": "tt0055928",
"title": "Dr. No",
"year": 1962,
"genres": [
"Action",
"Adventure",
"Crime",
"Thriller"
]
},
{
"id": "tt0056592",
"title": "To Kill a Mockingbird",
"year": 1962,
"genres": [
"Crime",
"Drama",
"Mystery"
]
},
{
"id": "tt0056172",
"title": "Lawrence of Arabia",
"year": 1962,
"genres": [
"Adventure",
"Biography",
"Drama",
"History",
"War"
]
},
{
"id": "tt0056193",
"title": "Lolita",
"year": 1962,
"genres": [
"Drama",
"Romance"
]
},
{
"id": "tt0056452",
"title": "Treasure of Silver Lake",
"year": 1962,
"genres": [
"Western",
"Adventure"
]
},
{
"id": "tt0056197",
"title": "The Longest Day",
"year": 1962,
"genres": [
"Action",
"Drama",
"History",
"War"
]
},
{
"id": "tt0056218",
"title": "The Manchurian Candidate",
"year": 1962,
"genres": [
"Drama",
"Mystery",
"Romance",
"Thriller",
"War"
]
},
{
"id": "tt0056217",
"title": "The Man Who Shot Liberty Valance",
"year": 1962,
"genres": [
"Drama",
"Romance",
"Western"
]
},
{
"id": "tt0056085",
"title": "How the West Was Won",
"year": 1962,
"genres": [
"Western"
]
},
{
"id": "tt0056210",
"title": "Mafioso",
"year": 1962,
"genres": [
"Comedy",
"Crime",
"Drama"
]
},
{
"id": "tt0057128",
"title": "The Haunted Palace",
"year": 1963,
"genres": [
"Horror"
]
},
{
"id": "tt0057193",
"title": "It's a Mad Mad Mad Mad World",
"year": 1963,
"genres": [
"Action",
"Adventure",
"Comedy",
"Crime"
]
},
{
"id": "tt0057076",
"title": "From Russia with Love",
"year": 1963,
"genres": [
"Action",
"Adventure",
"Crime",
"Thriller"
]
},
{
"id": "tt0056869",
"title": "The Birds",
"year": 1963,
"genres": [
"Horror",
"Thriller"
]
},
{
"id": "tt0057413",
"title": "The Pink Panther",
"year": 1963,
"genres": [
"Comedy",
"Crime"
]
},
{
"id": "tt0057115",
"title": "The Great Escape",
"year": 1963,
"genres": [
"Adventure",
"Drama",
"History",
"Thriller",
"War"
]
},
{
"id": "tt0057187",
"title": "Irma la Douce",
"year": 1963,
"genres": [
"Comedy",
"Romance"
]
},
{
"id": "tt0056801",
"title": "",
"year": 1963,
"genres": [
"Drama",
"Fantasy"
]
},
{
"id": "tt0057546",
"title": "The Sword in the Stone",
"year": 1963,
"genres": [
"Animation",
"Adventure",
"Comedy",
"Family",
"Fantasy"
]
},
{
"id": "tt0056937",
"title": "Cleopatra",
"year": 1963,
"genres": [
"Biography",
"Drama",
"History",
"Romance"
]
},
{
"id": "tt0058150",
"title": "Goldfinger",
"year": 1964,
"genres": [
"Action",
"Adventure",
"Crime",
"Thriller"
]
},
{
"id": "tt0058331",
"title": "Mary Poppins",
"year": 1964,
"genres": [
"Comedy",
"Family",
"Fantasy",
"Musical"
]
},
{
"id": "tt0057012",
"title": "Dr. Strangelove or: How I Learned to Stop Worrying and Love the Bomb",
"year": 1964,
"genres": [
"Comedy",
"War"
]
},
{
"id": "tt0058461",
"title": "A Fistful of Dollars",
"year": 1964,
"genres": [
"Western"
]
},
{
"id": "tt0058385",
"title": "My Fair Lady",
"year": 1964,
"genres": [
"Drama",
"Family",
"Musical",
"Romance"
]
},
{
"id": "tt0058329",
"title": "Marnie",
"year": 1964,
"genres": [
"Drama",
"Mystery",
"Romance",
"Thriller"
]
},
{
"id": "tt0058777",
"title": "Zulu",
"year": 1964,
"genres": [
"Action",
"Drama",
"History",
"War"
]
},
{
"id": "tt0058430",
"title": "Onibaba",
"year": 1964,
"genres": [
"Horror"
]
},
{
"id": "tt0058672",
"title": "Topkapi",
"year": 1964,
"genres": [
"Adventure",
"Comedy",
"Crime",
"Thriller"
]
},
{
"id": "tt0059825",
"title": "The Train",
"year": 1964,
"genres": [
"Thriller",
"War",
"Action"
]
},
{
"id": "tt0059742",
"title": "The Sound of Music",
"year": 1965,
"genres": [
"Biography",
"Drama",
"Family",
"Musical",
"Romance"
]
},
{
"id": "tt0059800",
"title": "Thunderball",
"year": 1965,
"genres": [
"Action",
"Crime",
"Thriller"
]
},
{
"id": "tt0059578",
"title": "For a Few Dollars More",
"year": 1965,
"genres": [
"Western"
]
},
{
"id": "tt0059113",
"title": "Doctor Zhivago",
"year": 1965,
"genres": [
"Drama",
"Romance",
"War"
]
},
{
"id": "tt0059245",
"title": "The Greatest Story Ever Told",
"year": 1965,
"genres": [
"Biography",
"Drama",
"History"
]
},
{
"id": "tt0059646",
"title": "Repulsion",
"year": 1965,
"genres": [
"Thriller"
]
},
{
"id": "tt0059043",
"title": "The Collector",
"year": 1965,
"genres": [
"Drama",
"Thriller"
]
},
{
"id": "tt0059592",
"title": "Pierrot le Fou",
"year": 1965,
"genres": [
"Comedy",
"Crime",
"Drama",
"Musical",
"Romance"
]
},
{
"id": "tt0059049",
"title": "Don Camillo in Moscow",
"year": 1965,
"genres": [
"Comedy"
]
},
{
"id": "tt0058947",
"title": "Battle of the Bulge",
"year": 1965,
"genres": [
"War",
"Action",
"Drama"
]
},
{
"id": "tt0060196",
"title": "The Good, the Bad and the Ugly",
"year": 1966,
"genres": [
"Adventure",
"Western"
]
},
{
"id": "tt0060315",
"title": "Django",
"year": 1966,
"genres": [
"Western"
]
},
{
"id": "tt0060424",
"title": "The Fortune Cookie",
"year": 1966,
"genres": [
"Comedy",
"Romance"
]
},
{
"id": "tt0061184",
"title": "Who's Afraid of Virginia Woolf?",
"year": 1966,
"genres": [
"Drama"
]
},
{
"id": "tt0060164",
"title": "The Bible: In the Beginning...",
"year": 1966,
"genres": [
"Drama"
]
},
{
"id": "tt0060176",
"title": "Blow-Up",
"year": 1966,
"genres": [
"Drama",
"Mystery",
"Thriller"
]
},
{
"id": "tt0060827",
"title": "Persona",
"year": 1966,
"genres": [
"Drama"
]
},
{
"id": "tt0060153",
"title": "Batman",
"year": 1966,
"genres": [
"Adventure",
"Comedy",
"Crime",
"Family",
"Sci-Fi"
]
},
{
"id": "tt0060390",
"title": "Fahrenheit 451",
"year": 1966,
"genres": [
"Drama",
"Sci-Fi",
"Thriller"
]
},
{
"id": "tt0061107",
"title": "Torn Curtain",
"year": 1966,
"genres": [
"Thriller"
]
},
{
"id": "tt0061722",
"title": "The Graduate",
"year": 1967,
"genres": [
"Comedy",
"Drama",
"Romance"
]
},
{
"id": "tt0061852",
"title": "The Jungle Book",
"year": 1967,
"genres": [
"Animation",
"Adventure",
"Family",
"Musical"
]
},
{
"id": "tt0061452",
"title": "Casino Royale",
"year": 1967,
"genres": [
"Action",
"Adventure",
"Comedy",
"Thriller"
]
},
{
"id": "tt0062512",
"title": "You Only Live Twice",
"year": 1967,
"genres": [
"Action",
"Adventure",
"Crime",
"Thriller"
]
},
{
"id": "tt0061512",
"title": "Cool Hand Luke",
"year": 1967,
"genres": [
"Crime",
"Drama"
]
},
{
"id": "tt0062185",
"title": "Reflections in a Golden Eye",
"year": 1967,
"genres": [
"Drama",
"Romance",
"Thriller"
]
},
{
"id": "tt0061418",
"title": "Bonnie and Clyde",
"year": 1967,
"genres": [
"Biography",
"Crime",
"Drama"
]
},
{
"id": "tt0061735",
"title": "Guess Who's Coming to Dinner",
"year": 1967,
"genres": [
"Drama"
]
},
{
"id": "tt0061811",
"title": "In the Heat of the Night",
"year": 1967,
"genres": [
"Crime",
"Drama",
"Mystery",
"Thriller"
]
},
{
"id": "tt0061578",
"title": "The Dirty Dozen",
"year": 1967,
"genres": [
"Action",
"Drama",
"War"
]
},
{
"id": "tt0062622",
"title": "2001: A Space Odyssey",
"year": 1968,
"genres": [
"Adventure",
"Mystery",
"Sci-Fi"
]
},
{
"id": "tt0064116",
"title": "Once Upon a Time in the West",
"year": 1968,
"genres": [
"Adventure",
"Western"
]
},
{
"id": "tt0063522",
"title": "Rosemary's Baby",
"year": 1968,
"genres": [
"Drama",
"Horror"
]
},
{
"id": "tt0063518",
"title": "Romeo and Juliet",
"year": 1968,
"genres": [
"Drama",
"Romance"
]
},
{
"id": "tt0063442",
"title": "Planet of the Apes",
"year": 1968,
"genres": [
"Action",
"Mystery",
"Sci-Fi"
]
},
{
"id": "tt0063350",
"title": "Night of the Living Dead",
"year": 1968,
"genres": [
"Horror",
"Sci-Fi"
]
},
{
"id": "tt0062765",
"title": "Bullitt",
"year": 1968,
"genres": [
"Action",
"Mystery",
"Thriller"
]
},
{
"id": "tt0062803",
"title": "Chitty Chitty Bang Bang",
"year": 1968,
"genres": [
"Comedy",
"Family",
"Fantasy",
"Musical",
"Sci-Fi"
]
},
{
"id": "tt0065207",
"title": "Where Eagles Dare",
"year": 1968,
"genres": [
"Action",
"Adventure",
"War"
]
},
{
"id": "tt0062711",
"title": "Barbarella",
"year": 1968,
"genres": [
"Action",
"Adventure",
"Comedy",
"Fantasy",
"Sci-Fi"
]
},
{
"id": "tt0064115",
"title": "Butch Cassidy and the Sundance Kid",
"year": 1969,
"genres": [
"Adventure",
"Biography",
"Crime",
"Western"
]
},
{
"id": "tt0064276",
"title": "Easy Rider",
"year": 1969,
"genres": [
"Drama"
]
},
{
"id": "tt0064757",
"title": "On Her Majesty's Secret Service",
"year": 1969,
"genres": [
"Action",
"Adventure",
"Crime",
"Romance",
"Thriller"
]
},
{
"id": "tt0065150",
"title": "The Undefeated",
"year": 1969,
"genres": [
"Western"
]
},
{
"id": "tt0064665",
"title": "Midnight Cowboy",
"year": 1969,
"genres": [
"Drama"
]
},
{
"id": "tt0065126",
"title": "True Grit",
"year": 1969,
"genres": [
"Adventure",
"Western",
"Drama"
]
},
{
"id": "tt0065214",
"title": "The Wild Bunch",
"year": 1969,
"genres": [
"Western"
]
},
{
"id": "tt0064505",
"title": "The Italian Job",
"year": 1969,
"genres": [
"Action",
"Comedy",
"Crime",
"Thriller"
]
},
{
"id": "tt0064072",
"title": "Battle of Britain",
"year": 1969,
"genres": [
"Action",
"Drama",
"History",
"War"
]
},
{
"id": "tt0065112",
"title": "Topaz",
"year": 1969,
"genres": [
"Thriller"
]
},
{
"id": "tt0065421",
"title": "The AristoCats",
"year": 1970,
"genres": [
"Animation",
"Adventure",
"Comedy",
"Family",
"Music"
]
},
{
"id": "tt0065963",
"title": "The Landlord",
"year": 1970,
"genres": [
"Comedy",
"Drama"
]
},
{
"id": "tt0066011",
"title": "Love Story",
"year": 1970,
"genres": [
"Drama",
"Romance"
]
},
{
"id": "tt0066026",
"title": "MASH",
"year": 1970,
"genres": [
"Comedy",
"War",
"Drama"
]
},
{
"id": "tt0066206",
"title": "Patton",
"year": 1970,
"genres": [
"Biography",
"Drama",
"History",
"War"
]
},
{
"id": "tt0065938",
"title": "Kelly's Heroes",
"year": 1970,
"genres": [
"Action",
"Adventure",
"Comedy",
"War"
]
},
{
"id": "tt0065669",
"title": "The Dunwich Horror",
"year": 1970,
"genres": [
"Horror"
]
},
{
"id": "tt0065528",
"title": "Catch-22",
"year": 1970,
"genres": [
"Comedy",
"War"
]
},
{
"id": "tt0065462",
"title": "Beneath the Planet of the Apes",
"year": 1970,
"genres": [
"Action",
"Sci-Fi"
]
},
{
"id": "tt0066473",
"title": "Tora! Tora! Tora!",
"year": 1970,
"genres": [
"Action",
"Adventure",
"Drama",
"History",
"War"
]
},
{
"id": "tt0067992",
"title": "Willy Wonka & the Chocolate Factory",
"year": 1971,
"genres": [
"Family",
"Fantasy",
"Musical"
]
},
{
"id": "tt0066921",
"title": "A Clockwork Orange",
"year": 1971,
"genres": [
"Crime",
"Drama",
"Sci-Fi"
]
},
{
"id": "tt0067093",
"title": "Fiddler on the Roof",
"year": 1971,
"genres": [
"Drama",
"Musical"
]
},
{
"id": "tt0066434",
"title": "THX 1138",
"year": 1971,
"genres": [
"Sci-Fi",
"Thriller"
]
},
{
"id": "tt0064624",
"title": "Maid in Sweden",
"year": 1971,
"genres": [
"Drama"
]
},
{
"id": "tt0066999",
"title": "Dirty Harry",
"year": 1971,
"genres": [
"Action",
"Crime",
"Thriller"
]
},
{
"id": "tt0066995",
"title": "Diamonds Are Forever",
"year": 1971,
"genres": [
"Action",
"Adventure",
"Crime",
"Thriller"
]
},
{
"id": "tt0067927",
"title": "Vanishing Point",
"year": 1971,
"genres": [
"Action",
"Thriller"
]
},
{
"id": "tt0067116",
"title": "The French Connection",
"year": 1971,
"genres": [
"Action",
"Crime",
"Thriller"
]
},
{
"id": "tt0067800",
"title": "Straw Dogs",
"year": 1971,
"genres": [
"Drama",
"Thriller"
]
},
{
"id": "tt0068646",
"title": "The Godfather",
"year": 1972,
"genres": [
"Crime",
"Drama"
]
},
{
"id": "tt0068240",
"title": "Avanti!",
"year": 1972,
"genres": [
"Comedy",
"Romance"
]
},
{
"id": "tt0068473",
"title": "Deliverance",
"year": 1972,
"genres": [
"Adventure",
"Drama",
"Thriller"
]
},
{
"id": "tt0069113",
"title": "The Poseidon Adventure",
"year": 1972,
"genres": [
"Action",
"Adventure"
]
},
{
"id": "tt0068468",
"title": "Deep Throat",
"year": 1972,
"genres": [
"Adult",
"Comedy"
]
},
{
"id": "tt0070849",
"title": "Last Tango in Paris",
"year": 1972,
"genres": [
"Drama",
"Romance"
]
},
{
"id": "tt0068762",
"title": "Jeremiah Johnson",
"year": 1972,
"genres": [
"Adventure",
"Drama",
"Western"
]
},
{
"id": "tt0068327",
"title": "Cabaret",
"year": 1972,
"genres": [
"Drama",
"Musical"
]
},
{
"id": "tt0068611",
"title": "Frenzy",
"year": 1972,
"genres": [
"Crime",
"Thriller"
]
},
{
"id": "tt0069293",
"title": "Solaris",
"year": 1972,
"genres": [
"Drama",
"Mystery",
"Sci-Fi"
]
},
{
"id": "tt0070294",
"title": "The Legend of Hell House",
"year": 1973,
"genres": [
"Horror",
"Mystery"
]
},
{
"id": "tt0070047",
"title": "The Exorcist",
"year": 1973,
"genres": [
"Horror",
"Thriller"
]
},
{
"id": "tt0070034",
"title": "Enter the Dragon",
"year": 1973,
"genres": [
"Action",
"Crime",
"Drama",
"Thriller"
]
},
{
"id": "tt0070328",
"title": "Live and Let Die",
"year": 1973,
"genres": [
"Action",
"Crime",
"Thriller"
]
},
{
"id": "tt0069704",
"title": "American Graffiti",
"year": 1973,
"genres": [
"Comedy"
]
},
{
"id": "tt0070184",
"title": "Hitler: The Last Ten Days",
"year": 1973,
"genres": [
"Biography",
"Drama",
"History",
"War"
]
},
{
"id": "tt0069762",
"title": "Badlands",
"year": 1973,
"genres": [
"Crime",
"Drama"
]
},
{
"id": "tt0070735",
"title": "The Sting",
"year": 1973,
"genres": [
"Comedy",
"Crime",
"Drama"
]
},
{
"id": "tt0070608",
"title": "Robin Hood",
"year": 1973,
"genres": [
"Animation",
"Adventure",
"Comedy",
"Family",
"Romance"
]
},
{
"id": "tt0070511",
"title": "Papillon",
"year": 1973,
"genres": [
"Biography",
"Crime",
"Drama"
]
},
{
"id": "tt0071807",
"title": "The Man with the Golden Gun",
"year": 1974,
"genres": [
"Action",
"Adventure",
"Crime",
"Thriller"
]
},
{
"id": "tt0071562",
"title": "The Godfather: Part II",
"year": 1974,
"genres": [
"Crime",
"Drama"
]
},
{
"id": "tt0072431",
"title": "Young Frankenstein",
"year": 1974,
"genres": [
"Comedy"
]
},
{
"id": "tt0071315",
"title": "Chinatown",
"year": 1974,
"genres": [
"Crime",
"Drama",
"Mystery"
]
},
{
"id": "tt0071230",
"title": "Blazing Saddles",
"year": 1974,
"genres": [
"Comedy",
"Western"
]
},
{
"id": "tt0071577",
"title": "The Great Gatsby",
"year": 1974,
"genres": [
"Drama",
"Romance"
]
},
{
"id": "tt0071464",
"title": "Emmanuelle",
"year": 1974,
"genres": [
"Drama"
]
},
{
"id": "tt0071360",
"title": "The Conversation",
"year": 1974,
"genres": [
"Drama",
"Mystery",
"Thriller"
]
},
{
"id": "tt0072271",
"title": "The Texas Chain Saw Massacre",
"year": 1974,
"genres": [
"Horror"
]
},
{
"id": "tt0071402",
"title": "Death Wish",
"year": 1974,
"genres": [
"Action",
"Crime",
"Drama",
"Thriller"
]
},
{
"id": "tt0073486",
"title": "One Flew Over the Cuckoo's Nest",
"year": 1975,
"genres": [
"Drama"
]
},
{
"id": "tt0073195",
"title": "Jaws",
"year": 1975,
"genres": [
"Adventure",
"Horror",
"Thriller"
]
},
{
"id": "tt0071853",
"title": "Monty Python and the Holy Grail",
"year": 1975,
"genres": [
"Adventure",
"Comedy",
"Fantasy"
]
},
{
"id": "tt0073629",
"title": "The Rocky Horror Picture Show",
"year": 1975,
"genres": [
"Comedy",
"Musical"
]
},
{
"id": "tt0072890",
"title": "Dog Day Afternoon",
"year": 1975,
"genres": [
"Crime",
"Drama"
]
},
{
"id": "tt0073650",
"title": "Salò, or the 120 Days of Sodom",
"year": 1975,
"genres": [
"Drama",
"Thriller",
"War"
]
},
{
"id": "tt0072684",
"title": "Barry Lyndon",
"year": 1975,
"genres": [
"Adventure",
"Drama",
"Romance",
"War"
]
},
{
"id": "tt0073115",
"title": "The Story of O",
"year": 1975,
"genres": [
"Drama"
]
},
{
"id": "tt0073802",
"title": "Three Days of the Condor",
"year": 1975,
"genres": [
"Drama",
"Mystery",
"Romance",
"Thriller"
]
},
{
"id": "tt0072856",
"title": "Death Race 2000",
"year": 1975,
"genres": [
"Action",
"Sci-Fi",
"Sport"
]
},
{
"id": "tt0075314",
"title": "Taxi Driver",
"year": 1976,
"genres": [
"Crime",
"Drama"
]
},
{
"id": "tt0075148",
"title": "Rocky",
"year": 1976,
"genres": [
"Drama",
"Sport"
]
},
{
"id": "tt0074285",
"title": "Carrie",
"year": 1976,
"genres": [
"Horror",
"Thriller"
]
},
{
"id": "tt0074958",
"title": "Network",
"year": 1976,
"genres": [
"Drama"
]
},
{
"id": "tt0074812",
"title": "Logan's Run",
"year": 1976,
"genres": [
"Action",
"Sci-Fi"
]
},
{
"id": "tt0075005",
"title": "The Omen",
"year": 1976,
"genres": [
"Horror",
"Mystery"
]
},
{
"id": "tt0074860",
"title": "Marathon Man",
"year": 1976,
"genres": [
"Thriller"
]
},
{
"id": "tt0074119",
"title": "All the President's Men",
"year": 1976,
"genres": [
"Drama",
"History",
"Mystery",
"Thriller"
]
},
{
"id": "tt0074102",
"title": "In the Realm of the Senses",
"year": 1976,
"genres": [
"Drama",
"History",
"Romance"
]
},
{
"id": "tt0075029",
"title": "The Outlaw Josey Wales",
"year": 1976,
"genres": [
"Action",
"Adventure",
"Drama",
"Western"
]
},
{
"id": "tt0076759",
"title": "Star Wars",
"year": 1977,
"genres": [
"Action",
"Adventure",
"Fantasy",
"Sci-Fi"
]
},
{
"id": "tt0075686",
"title": "Annie Hall",
"year": 1977,
"genres": [
"Comedy",
"Drama",
"Romance"
]
},
{
"id": "tt0075860",
"title": "Close Encounters of the Third Kind",
"year": 1977,
"genres": [
"Adventure",
"Drama",
"Sci-Fi"
]
},
{
"id": "tt0076752",
"title": "The Spy Who Loved Me",
"year": 1977,
"genres": [
"Action",
"Adventure",
"Crime",
"Thriller"
]
},
{
"id": "tt0076666",
"title": "Saturday Night Fever",
"year": 1977,
"genres": [
"Drama",
"Music"
]
},
{
"id": "tt0076618",
"title": "The Rescuers",
"year": 1977,
"genres": [
"Animation",
"Adventure",
"Crime",
"Drama",
"Family",
"Fantasy",
"Mystery"
]
},
{
"id": "tt0076729",
"title": "Smokey and the Bandit",
"year": 1977,
"genres": [
"Action",
"Comedy",
"Crime",
"Romance"
]
},
{
"id": "tt0076363",
"title": "The Many Adventures of Winnie the Pooh",
"year": 1977,
"genres": [
"Animation",
"Family",
"Fantasy",
"Musical"
]
},
{
"id": "tt0076538",
"title": "Pete's Dragon",
"year": 1977,
"genres": [
"Adventure",
"Family",
"Fantasy",
"Musical"
]
},
{
"id": "tt0075784",
"title": "A Bridge Too Far",
"year": 1977,
"genres": [
"Drama",
"History",
"War"
]
},
{
"id": "tt0077631",
"title": "Grease",
"year": 1978,
"genres": [
"Musical",
"Romance"
]
},
{
"id": "tt0077975",
"title": "Animal House",
"year": 1978,
"genres": [
"Comedy",
"Romance"
]
},
{
"id": "tt0078346",
"title": "Superman",
"year": 1978,
"genres": [
"Action",
"Adventure",
"Sci-Fi"
]
},
{
"id": "tt0077416",
"title": "The Deer Hunter",
"year": 1978,
"genres": [
"Drama",
"War"
]
},
{
"id": "tt0077651",
"title": "Halloween",
"year": 1978,
"genres": [
"Horror"
]
},
{
"id": "tt0077588",
"title": "The Fury",
"year": 1978,
"genres": [
"Drama",
"Horror",
"Sci-Fi",
"Thriller"
]
},
{
"id": "tt0077373",
"title": "Stay as You Are",
"year": 1978,
"genres": [
"Drama",
"Romance"
]
},
{
"id": "tt0077402",
"title": "Dawn of the Dead",
"year": 1978,
"genres": [
"Horror",
"Sci-Fi"
]
},
{
"id": "tt0078504",
"title": "The Wiz",
"year": 1978,
"genres": [
"Adventure",
"Family",
"Fantasy",
"Musical"
]
},
{
"id": "tt0077928",
"title": "Midnight Express",
"year": 1978,
"genres": [
"Biography",
"Crime",
"Drama"
]
},
{
"id": "tt0078788",
"title": "Apocalypse Now",
"year": 1979,
"genres": [
"Drama",
"War"
]
},
{
"id": "tt0078748",
"title": "Alien",
"year": 1979,
"genres": [
"Horror",
"Sci-Fi"
]
},
{
"id": "tt0080120",
"title": "The Warriors",
"year": 1979,
"genres": [
"Action",
"Thriller"
]
},
{
"id": "tt0079470",
"title": "Life of Brian",
"year": 1979,
"genres": [
"Comedy"
]
},
{
"id": "tt0079501",
"title": "Mad Max",
"year": 1979,
"genres": [
"Action",
"Adventure",
"Sci-Fi",
"Thriller"
]
},
{
"id": "tt0079817",
"title": "Rocky II",
"year": 1979,
"genres": [
"Drama",
"Sport"
]
},
{
"id": "tt0080491",
"title": "Caligula",
"year": 1979,
"genres": [
"Adult",
"Drama",
"History"
]
},
{
"id": "tt0079945",
"title": "Star Trek: The Motion Picture",
"year": 1979,
"genres": [
"Adventure",
"Mystery",
"Sci-Fi"
]
},
{
"id": "tt0079116",
"title": "Escape from Alcatraz",
"year": 1979,
"genres": [
"Crime",
"Drama",
"History",
"Thriller"
]
},
{
"id": "tt0079574",
"title": "Moonraker",
"year": 1979,
"genres": [
"Action",
"Adventure",
"Crime",
"Sci-Fi",
"Thriller"
]
},
{
"id": "tt0081505",
"title": "The Shining",
"year": 1980,
"genres": [
"Horror",
"Mystery"
]
},
{
"id": "tt0080684",
"title": "Star Wars: Episode V - The Empire Strikes Back",
"year": 1980,
"genres": [
"Action",
"Adventure",
"Sci-Fi"
]
},
{
"id": "tt0080339",
"title": "Airplane!",
"year": 1980,
"genres": [
"Comedy",
"Romance"
]
},
{
"id": "tt0080455",
"title": "The Blues Brothers",
"year": 1980,
"genres": [
"Action",
"Adventure",
"Comedy",
"Music",
"Musical"
]
},
{
"id": "tt0081398",
"title": "Raging Bull",
"year": 1980,
"genres": [
"Biography",
"Drama",
"Sport"
]
},
{
"id": "tt0080678",
"title": "The Elephant Man",
"year": 1980,
"genres": [
"Biography",
"Drama"
]
},
{
"id": "tt0080487",
"title": "Caddyshack",
"year": 1980,
"genres": [
"Comedy",
"Sport"
]
},
{
"id": "tt0080855",
"title": "Heaven's Gate",
"year": 1980,
"genres": [
"Drama",
"History",
"Romance",
"Western"
]
},
{
"id": "tt0080453",
"title": "The Blue Lagoon",
"year": 1980,
"genres": [
"Adventure",
"Drama",
"Romance"
]
},
{
"id": "tt0081573",
"title": "Superman II",
"year": 1980,
"genres": [
"Action",
"Adventure",
"Sci-Fi"
]
},
{
"id": "tt0083907",
"title": "The Evil Dead",
"year": 1981,
"genres": [
"Horror"
]
},
{
"id": "tt0082971",
"title": "Raiders of the Lost Ark",
"year": 1981,
"genres": [
"Action",
"Adventure"
]
},
{
"id": "tt0082096",
"title": "Das Boot",
"year": 1981,
"genres": [
"Action",
"Adventure",
"Drama",
"History",
"War"
]
},
{
"id": "tt0082398",
"title": "For Your Eyes Only",
"year": 1981,
"genres": [
"Action",
"Adventure",
"Crime",
"Thriller"
]
},
{
"id": "tt0082406",
"title": "The Fox and the Hound",
"year": 1981,
"genres": [
"Animation",
"Adventure",
"Family"
]
},
{
"id": "tt0082694",
"title": "Mad Max 2: The Road Warrior",
"year": 1981,
"genres": [
"Action",
"Adventure",
"Sci-Fi",
"Thriller"
]
},
{
"id": "tt0083131",
"title": "Stripes",
"year": 1981,
"genres": [
"Comedy",
"War"
]
},
{
"id": "tt0082348",
"title": "Excalibur",
"year": 1981,
"genres": [
"Adventure",
"Drama",
"Fantasy"
]
},
{
"id": "tt0082340",
"title": "Escape from New York",
"year": 1981,
"genres": [
"Action",
"Sci-Fi"
]
},
{
"id": "tt0082766",
"title": "Mommie Dearest",
"year": 1981,
"genres": [
"Biography",
"Drama"
]
},
{
"id": "tt0083658",
"title": "Blade Runner",
"year": 1982,
"genres": [
"Drama",
"Sci-Fi",
"Thriller"
]
},
{
"id": "tt0083866",
"title": "E.T. the Extra-Terrestrial",
"year": 1982,
"genres": [
"Adventure",
"Drama",
"Family",
"Fantasy",
"Sci-Fi"
]
},
{
"id": "tt0084787",
"title": "The Thing",
"year": 1982,
"genres": [
"Horror",
"Mystery",
"Sci-Fi",
"Thriller"
]
},
{
"id": "tt0084827",
"title": "TRON",
"year": 1982,
"genres": [
"Action",
"Adventure",
"Sci-Fi"
]
},
{
"id": "tt0083929",
"title": "Fast Times at Ridgemont High",
"year": 1982,
"genres": [
"Comedy",
"Drama",
"Romance"
]
},
{
"id": "tt0083987",
"title": "Gandhi",
"year": 1982,
"genres": [
"Biography",
"Drama",
"History"
]
},
{
"id": "tt0083944",
"title": "First Blood",
"year": 1982,
"genres": [
"Action",
"Adventure",
"Drama",
"Thriller"
]
},
{
"id": "tt0082198",
"title": "Conan the Barbarian",
"year": 1982,
"genres": [
"Action",
"Fantasy",
"Adventure"
]
},
{
"id": "tt0084516",
"title": "Poltergeist",
"year": 1982,
"genres": [
"Horror"
]
},
{
"id": "tt0084726",
"title": "Star Trek II: The Wrath of Khan",
"year": 1982,
"genres": [
"Action",
"Adventure",
"Sci-Fi",
"Thriller"
]
},
{
"id": "tt0086250",
"title": "Scarface",
"year": 1983,
"genres": [
"Crime",
"Drama",
"Thriller"
]
},
{
"id": "tt0086190",
"title": "Star Wars: Episode VI - Return of the Jedi",
"year": 1983,
"genres": [
"Action",
"Adventure",
"Fantasy",
"Sci-Fi"
]
},
{
"id": "tt0086066",
"title": "The Outsiders",
"year": 1983,
"genres": [
"Crime",
"Drama"
]
},
{
"id": "tt0086567",
"title": "WarGames",
"year": 1983,
"genres": [
"Sci-Fi",
"Thriller"
]
},
{
"id": "tt0086465",
"title": "Trading Places",
"year": 1983,
"genres": [
"Comedy"
]
},
{
"id": "tt0085334",
"title": "A Christmas Story",
"year": 1983,
"genres": [
"Comedy",
"Family"
]
},
{
"id": "tt0085995",
"title": "Vacation",
"year": 1983,
"genres": [
"Adventure",
"Comedy",
"Romance"
]
},
{
"id": "tt0086034",
"title": "Octopussy",
"year": 1983,
"genres": [
"Action",
"Adventure",
"Crime",
"Thriller"
]
},
{
"id": "tt0085333",
"title": "Christine",
"year": 1983,
"genres": [
"Drama",
"Horror",
"Mystery",
"Thriller"
]
},
{
"id": "tt0086006",
"title": "Never Say Never Again",
"year": 1983,
"genres": [
"Action",
"Adventure",
"Thriller"
]
},
{
"id": "tt0087985",
"title": "Red Dawn",
"year": 1984,
"genres": [
"Action",
"Adventure",
"Drama",
"Thriller"
]
},
{
"id": "tt0087538",
"title": "The Karate Kid",
"year": 1984,
"genres": [
"Action",
"Drama",
"Family",
"Sport"
]
},
{
"id": "tt0088258",
"title": "This Is Spinal Tap",
"year": 1984,
"genres": [
"Comedy",
"Music"
]
},
{
"id": "tt0088247",
"title": "The Terminator",
"year": 1984,
"genres": [
"Action",
"Sci-Fi"
]
},
{
"id": "tt0086896",
"title": "Angel",
"year": 1984,
"genres": [
"Action",
"Crime",
"Thriller"
]
},
{
"id": "tt0086879",
"title": "Amadeus",
"year": 1984,
"genres": [
"Biography",
"Drama",
"Music"
]
},
{
"id": "tt0087332",
"title": "Ghostbusters",
"year": 1984,
"genres": [
"Comedy",
"Family",
"Fantasy"
]
},
{
"id": "tt0088323",
"title": "The NeverEnding Story",
"year": 1984,
"genres": [
"Adventure",
"Drama",
"Family",
"Fantasy"
]
},
{
"id": "tt0087800",
"title": "A Nightmare on Elm Street",
"year": 1984,
"genres": [
"Horror"
]
},
{
"id": "tt0087469",
"title": "Indiana Jones and the Temple of Doom",
"year": 1984,
"genres": [
"Action",
"Adventure"
]
},
{
"id": "tt0088763",
"title": "Back to the Future",
"year": 1985,
"genres": [
"Adventure",
"Comedy",
"Sci-Fi"
]
},
{
"id": "tt0088847",
"title": "The Breakfast Club",
"year": 1985,
"genres": [
"Comedy",
"Drama"
]
},
{
"id": "tt0089218",
"title": "The Goonies",
"year": 1985,
"genres": [
"Adventure",
"Comedy",
"Family"
]
},
{
"id": "tt0089908",
"title": "Return to Oz",
"year": 1985,
"genres": [
"Adventure",
"Family",
"Fantasy",
"Mystery"
]
},
{
"id": "tt0089927",
"title": "Rocky IV",
"year": 1985,
"genres": [
"Drama",
"Sport"
]
},
{
"id": "tt0090305",
"title": "Weird Science",
"year": 1985,
"genres": [
"Comedy",
"Fantasy",
"Romance"
]
},
{
"id": "tt0088846",
"title": "Brazil",
"year": 1985,
"genres": [
"Drama",
"Fantasy",
"Sci-Fi"
]
},
{
"id": "tt0090264",
"title": "A View to a Kill",
"year": 1985,
"genres": [
"Action",
"Adventure",
"Crime",
"Thriller"
]
},
{
"id": "tt0088944",
"title": "Commando",
"year": 1985,
"genres": [
"Action",
"Adventure",
"Thriller"
]
},
{
"id": "tt0089880",
"title": "Rambo: First Blood Part II",
"year": 1985,
"genres": [
"Action",
"Adventure",
"Thriller",
"War"
]
},
{
"id": "tt0091042",
"title": "Ferris Bueller's Day Off",
"year": 1986,
"genres": [
"Comedy",
"Drama"
]
},
{
"id": "tt0092099",
"title": "Top Gun",
"year": 1986,
"genres": [
"Action",
"Drama",
"Romance"
]
},
{
"id": "tt0090605",
"title": "Aliens",
"year": 1986,
"genres": [
"Action",
"Adventure",
"Sci-Fi",
"Thriller"
]
},
{
"id": "tt0092005",
"title": "Stand by Me",
"year": 1986,
"genres": [
"Adventure",
"Drama"
]
},
{
"id": "tt0091763",
"title": "Platoon",
"year": 1986,
"genres": [
"Action",
"Drama",
"War"
]
},
{
"id": "tt0090728",
"title": "Big Trouble in Little China",
"year": 1986,
"genres": [
"Action",
"Adventure",
"Comedy",
"Fantasy",
"Horror"
]
},
{
"id": "tt0091790",
"title": "Pretty in Pink",
"year": 1986,
"genres": [
"Comedy",
"Drama",
"Romance"
]
},
{
"id": "tt0091369",
"title": "Labyrinth",
"year": 1986,
"genres": [
"Adventure",
"Family",
"Fantasy",
"Musical"
]
},
{
"id": "tt0091326",
"title": "The Karate Kid, Part II",
"year": 1986,
"genres": [
"Action",
"Family",
"Romance",
"Sport"
]
},
{
"id": "tt0091635",
"title": "Nine 1/2 Weeks",
"year": 1986,
"genres": [
"Drama",
"Romance"
]
},
{
"id": "tt0093779",
"title": "The Princess Bride",
"year": 1987,
"genres": [
"Adventure",
"Comedy",
"Family",
"Fantasy",
"Romance"
]
},
{
"id": "tt0093058",
"title": "Full Metal Jacket",
"year": 1987,
"genres": [
"Drama",
"War"
]
},
{
"id": "tt0093773",
"title": "Predator",
"year": 1987,
"genres": [
"Action",
"Adventure",
"Sci-Fi"
]
},
{
"id": "tt0094226",
"title": "The Untouchables",
"year": 1987,
"genres": [
"Crime",
"Drama",
"History",
"Thriller"
]
},
{
"id": "tt0092890",
"title": "Dirty Dancing",
"year": 1987,
"genres": [
"Drama",
"Romance"
]
},
{
"id": "tt0093409",
"title": "Lethal Weapon",
"year": 1987,
"genres": [
"Action",
"Thriller"
]
},
{
"id": "tt0094012",
"title": "Spaceballs",
"year": 1987,
"genres": [
"Adventure",
"Comedy",
"Sci-Fi"
]
},
{
"id": "tt0093437",
"title": "The Lost Boys",
"year": 1987,
"genres": [
"Comedy",
"Horror"
]
},
{
"id": "tt0094291",
"title": "Wall Street",
"year": 1987,
"genres": [
"Crime",
"Drama"
]
},
{
"id": "tt0092991",
"title": "Evil Dead II",
"year": 1987,
"genres": [
"Action",
"Comedy",
"Horror"
]
},
{
"id": "tt0095016",
"title": "Die Hard",
"year": 1988,
"genres": [
"Action",
"Thriller"
]
},
{
"id": "tt0096446",
"title": "Willow",
"year": 1988,
"genres": [
"Action",
"Adventure",
"Drama",
"Fantasy",
"Romance"
]
},
{
"id": "tt0095953",
"title": "Rain Man",
"year": 1988,
"genres": [
"Drama"
]
},
{
"id": "tt0094721",
"title": "Beetlejuice",
"year": 1988,
"genres": [
"Comedy",
"Fantasy"
]
},
{
"id": "tt0096438",
"title": "Who Framed Roger Rabbit",
"year": 1988,
"genres": [
"Animation",
"Comedy",
"Crime",
"Fantasy"
]
},
{
"id": "tt0095159",
"title": "A Fish Called Wanda",
"year": 1988,
"genres": [
"Comedy",
"Crime"
]
},
{
"id": "tt0094898",
"title": "Coming to America",
"year": 1988,
"genres": [
"Comedy",
"Drama",
"Romance"
]
},
{
"id": "tt0095489",
"title": "The Land Before Time",
"year": 1988,
"genres": [
"Adventure",
"Family",
"Drama",
"Animation"
]
},
{
"id": "tt0094737",
"title": "Big",
"year": 1988,
"genres": [
"Comedy",
"Drama",
"Family",
"Fantasy",
"Romance"
]
},
{
"id": "tt0096283",
"title": "My Neighbor Totoro",
"year": 1988,
"genres": [
"Animation",
"Family",
"Fantasy"
]
},
{
"id": "tt0097576",
"title": "Indiana Jones and the Last Crusade",
"year": 1989,
"genres": [
"Action",
"Adventure"
]
},
{
"id": "tt0097165",
"title": "Dead Poets Society",
"year": 1989,
"genres": [
"Drama"
]
},
{
"id": "tt0096895",
"title": "Batman",
"year": 1989,
"genres": [
"Action",
"Fantasy"
]
},
{
"id": "tt0096874",
"title": "Back to the Future Part II",
"year": 1989,
"genres": [
"Adventure",
"Comedy",
"Sci-Fi"
]
},
{
"id": "tt0097757",
"title": "The Little Mermaid",
"year": 1989,
"genres": [
"Animation",
"Family",
"Fantasy",
"Musical",
"Romance"
]
},
{
"id": "tt0098258",
"title": "Say Anything...",
"year": 1989,
"genres": [
"Comedy",
"Drama",
"Romance"
]
},
{
"id": "tt0097958",
"title": "Christmas Vacation",
"year": 1989,
"genres": [
"Comedy"
]
},
{
"id": "tt0098206",
"title": "Road House",
"year": 1989,
"genres": [
"Action",
"Thriller"
]
},
{
"id": "tt0098635",
"title": "When Harry Met Sally...",
"year": 1989,
"genres": [
"Comedy",
"Drama",
"Romance"
]
},
{
"id": "tt0097108",
"title": "The Cook, the Thief, His Wife & Her Lover",
"year": 1989,
"genres": [
"Drama"
]
},
{
"id": "tt0099685",
"title": "Goodfellas",
"year": 1990,
"genres": [
"Biography",
"Crime",
"Drama",
"Thriller"
]
},
{
"id": "tt0099487",
"title": "Edward Scissorhands",
"year": 1990,
"genres": [
"Drama",
"Fantasy",
"Romance"
]
},
{
"id": "tt0099785",
"title": "Home Alone",
"year": 1990,
"genres": [
"Adventure",
"Comedy",
"Family"
]
},
{
"id": "tt0100405",
"title": "Pretty Woman",
"year": 1990,
"genres": [
"Comedy",
"Romance"
]
},
{
"id": "tt0099674",
"title": "The Godfather: Part III",
"year": 1990,
"genres": [
"Crime",
"Drama",
"Mystery",
"Thriller"
]
},
{
"id": "tt0100802",
"title": "Total Recall",
"year": 1990,
"genres": [
"Action",
"Adventure",
"Sci-Fi"
]
},
{
"id": "tt0099423",
"title": "Die Hard 2",
"year": 1990,
"genres": [
"Action",
"Crime",
"Thriller"
]
},
{
"id": "tt0100758",
"title": "Teenage Mutant Ninja Turtles",
"year": 1990,
"genres": [
"Action",
"Adventure",
"Comedy",
"Crime",
"Drama",
"Family",
"Sci-Fi"
]
},
{
"id": "tt0099653",
"title": "Ghost",
"year": 1990,
"genres": [
"Drama",
"Fantasy",
"Mystery",
"Romance",
"Thriller"
]
},
{
"id": "tt0099088",
"title": "Back to the Future Part III",
"year": 1990,
"genres": [
"Adventure",