Created
August 15, 2017 21:17
-
-
Save a-h/9ec4b14bc03a2a206d5c6145103daaa8 to your computer and use it in GitHub Desktop.
LoveFilm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fetch = require('node-fetch'); | |
/* | |
for(var i = 0; i < images.length; i ++) { var alt = images[i].getAttribute('alt'); if(alt && alt !== 'Learn more') { console.log(alt); } } | |
*/ | |
const films = [ | |
'Jack Reacher', | |
'The Croods', | |
'The Place Beyond the Pines', | |
'The Walking Dead - Season 1', | |
'Oblivion', | |
'2001 Nights', | |
'Wild At Heart', | |
'Wreck-It Ralph', | |
'Side Effects', | |
'Garfield: As Himself', | |
'How to Train Your Dragon', | |
'A Serious Man', | |
'Lawless', | |
'The Neverending Story', | |
'Her', | |
'Nisemonogatari - Part 1', | |
'Transcendence', | |
'Gravity', | |
'Nebraska', | |
'Muppets from Space', | |
'Orphan', | |
'This Is 40', | |
'Sarah Silverman - Jesus Is Magic', | |
'Bill And Ted\'s Excellent Adventure', | |
'How I Live Now', | |
'Marie-Antoinette', | |
'Under the Skin', | |
'Trance', | |
'Tropicalia', | |
'Exhibition', | |
'The Story of Yonosuke', | |
'The Machine', | |
'Northern Exposure - Series 1', | |
'The Man Who Fell to Earth', | |
'The Bling Ring', | |
'Submarine', | |
'The Guilt Trip', | |
'Frozen', | |
'I, Frankenstein', | |
'Locke', | |
'Sound Of My Voice', | |
'The Double', | |
'I Give It a Year', | |
'SpongeBob SquarePants - SpongeBob Triton\'s Revenge', | |
'Carnage', | |
'The Hobbit: The Desolation of Smaug', | |
'Ip Man 2 - Legend Of The Grandmaster - Subtitled', | |
'Frankenweenie', | |
'Karas - The Revelation', | |
'Agnosia', | |
'22 Jump Street', | |
'Full Time Killer', | |
'Plastic', | |
'Sukiyaki Western Django', | |
'Zero Dark Thirty', | |
'The World\'s End', | |
'Rurouni Kenshin', | |
'Kick-Ass 2 - Balls to the Wall', | |
'R.I.P.D.', | |
'The Zero Theorem', | |
'Harry Potter and the Philosopher\'s Stone', | |
'Fearless', | |
'Teenage Mutant Ninja Turtles: Cowabunga Classics', | |
'Ashes of Time Redux', | |
'Fight Club', | |
'Beast Stalker', | |
'Teenage Mutant Ninja Turtles - The Original Movie', | |
'Only Lovers Left Alive', | |
'Der Golem', | |
'Examined Life', | |
'The Signal', | |
'Spirited Away', | |
'LEGO Batman - The Movie - DC Super Heroes Unite', | |
'No Signal - Series 1 - Complete', | |
'Alien vs. Ninja', | |
'We Are the Best!', | |
'Upstream Colour', | |
'Lucy', | |
'Benda Bilili', | |
'The Punk Singer', | |
'Fury', | |
'Earth to Echo', | |
'Jackass Presents - Bad Grandpa', | |
'Cosmopolis', | |
'RoboCop', | |
'Maniac', | |
'Taken 2', | |
'Spider-Man And His Amazing Friends - Series 1', | |
'August: Osage County', | |
'Live Die Repeat: Edge of Tomorrow', | |
'Wild', | |
'Justin and the Knights of Valour', | |
'Pulp: A Film About Life, Death, and Supermarkets', | |
'The Hobbit: The Battle of the Five Armies', | |
'Room 237', | |
'Muppets Most Wanted', | |
'True Blood - Series 6', | |
'The Act of Killing', | |
'This Is the End', | |
'Monsters - Dark Continent', | |
'Paddington', | |
'The Darjeeling Limited', | |
'True Blood - Series 7', | |
'Maps to the Stars', | |
'Kingsman - The Secret Service', | |
'Chappie', | |
'Interstellar', | |
'Blue Ruin', | |
'Before I Go to Sleep', | |
'Comic-Con: Episode IV - A Fan\'s Hope', | |
'Beetlejuice', | |
'Mad Max - Fury Road', | |
'Automata', | |
'The SpongeBob Movie - Sponge Out of Water', | |
'Far from the Madding Crowd', | |
'Compliance', | |
'24 Hour Party People', | |
'Ice', | |
'Hard to Be a God - Subtitled', | |
'The Imitation Game', | |
'Big Hero 6', | |
'Inside Out', | |
'Spectre', | |
'Hotel Transylvania', | |
'Pan', | |
'Whiplash', | |
'Song of the Sea', | |
'Terminator - Genisys', | |
'Birdman', | |
'Tomorrowland - A World Beyond', | |
'Carol', | |
'Beat Girl', | |
'Kurt Cobain: Montage of Heck', | |
'The Martian', | |
'Minions', | |
'Youth', | |
'Home', | |
'Mr. Holmes', | |
'Bridge of Spies', | |
'The Homesman', | |
'Dawn of the Planet of the Apes', | |
'Exodus - Gods and Kings', | |
'The Hateful Eight', | |
'The Emperor\'s New Clothes', | |
'Portlandia - Season 1 and 2', | |
'Bellflower', | |
'The Book of Life', | |
'Ex Machina', | |
'Portlandia - Season 3', | |
'The Future', | |
'Prince Avalanche', | |
'Simon Amstell Live at the BBC', | |
'Zoolander 2', | |
'The Revenant', | |
'Hardcore Henry', | |
'Rams - Subtitled', | |
'Zootropolis', | |
'The Jungle Book', | |
'Spy', | |
'Deadpool', | |
'Up The Yangtze', | |
'Apollo 18', | |
'4', | |
'Pixels', | |
'The Angels\' Share', | |
'Sicario', | |
'Yakuza Apocalypse - Subtitled', | |
'Why We Fight', | |
'Children Of Men', | |
'Seconds', | |
'The Seven Per Cent Solution', | |
'The Guillotines', | |
'Bad Moms', | |
'Pete\'s Dragon', | |
'IP Man 3 - Subtitled', | |
'The Angry Birds Movie', | |
'Diary of a Wimpy Kid', | |
'The Trip to Italy', | |
'Citizenfour', | |
'The Battery', | |
'Finding Dory', | |
'The Ploughman\'s Lunch', | |
'The Lobster', | |
'Harry Potter and the Prisoner of Azkaban', | |
'Louder Than Bombs', | |
'Diary of a Wimpy Kid 2 - Rodrick Rules', | |
'Life', | |
'Tiny Furniture', | |
'Picnic at Hanging Rock', | |
'Tron - Legacy', | |
'The Man Who Knew Infinity', | |
'Ghost in the Shell Arise: Borders Parts 1 and 2', | |
'Miss Peregrine\'s Home for Peculiar Children', | |
'Ghost in the Shell Arise: Borders Parts 3 and 4', | |
'The Girl With All the Gifts', | |
'Guardians of the Galaxy', | |
'Enemy', | |
'Absolutely Fabulous: The Movie', | |
'Remainder', | |
'The Secret Life of Pets', | |
'Home', | |
] | |
for (let i = 0; i < films.length; i += 1) { | |
fetch('http://netflixroulette.net/api/api.php?title=' + escape(films[i])) | |
.then(v => v.json()) | |
.then(v => { | |
let onNetflix = true; | |
if(v.errorcode) { | |
onNetflix = false; | |
} | |
console.log(`${films[i]}\t${onNetflix}`); | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for(var i = 0; i < images.length; i ++) { var alt = images[i].getAttribute('alt'); if(alt && alt !== 'Learn more') { console.log(alt); } } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment