Last active
February 21, 2016 21:14
-
-
Save ggauravr/05f076f2101d1ef803bc to your computer and use it in GitHub Desktop.
Most Popular Hollywood Movies of 2015 from IMDb
This file contains hidden or 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
// from URL: http://www.imdb.com/search/title?year=2015,2015&title_type=feature&sort=moviemeter,asc | |
var titleLinks = document.querySelectorAll('td.title a[href^="/title/"]'), | |
titleArray = Array.prototype.slice.call(titleLinks), | |
titles = titleArray.map(function(link) { | |
return link.innerText; | |
}); | |
// titles is an array like this: | |
// ["The Revenant", "Star Wars: Episode VII - The Force Awakens", "The Hateful Eight", "Spotlight", | |
// "The Martian", "The Big Short", "Room", "Hardcore Henry", "Bridge of Spies", "Spectre", "Sicario", | |
// "The Danish Girl", "Legend", "Mad Max: Fury Road", "Creed", "Goosebumps", "The Lobster", "The Last Witch Hunter", | |
// "The Night Before", "Tomorrowland", "The Witch", "The Good Dinosaur", "Avengers: Age of Ultron", "Brooklyn", "Black Mass", | |
// "Crimson Peak", "Steve Jobs", "Trumbo", "Regression", "Straight Outta Compton", "The Intern", "Ex Machina", "Joy", | |
// "Fifty Shades of Grey", "Everest", "Point Break", "Carol", "Burnt", "Inside Out", "Ant-Man", "Secret in Their Eyes", | |
// "Concussion", "The Man from U.N.C.L.E.", "Macbeth", "Love", "Dope", "Maze Runner: The Scorch Trials", | |
// "The Hunger Games: Mockingjay - Part 2", "The Visit", "Solace"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment