Created
May 7, 2016 05:04
-
-
Save amaxwell01/c2ce95a1d221d0fd5dc2a0ded2a7406a to your computer and use it in GitHub Desktop.
Get a list of movie names from my Google Play Movies collection
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
/* | |
* Return a Array of movie names in my Google Play movies colletion | |
* https://play.google.com/movies | |
* Must be signed in and viewing the page for this to work | |
* Created by: Andrew Maxwell | |
* Created on: May 6th, 2016 | |
*/ | |
var movieList = Array.prototype.slice.call(document.querySelectorAll('#body-content > div > div > div.main-content > div > div:nth-child(2) > div.id-cluster-container.cluster-container > div > div.id-card-list.card-list.two-cards > div')); | |
var movies = movieList.map(function(movie) { | |
var movieName = movie.innerText; | |
movieName = movieName.split('\n')[1]; | |
return movieName; | |
}); | |
copy(movies); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment