Skip to content

Instantly share code, notes, and snippets.

@amaxwell01
Created May 7, 2016 05:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amaxwell01/c2ce95a1d221d0fd5dc2a0ded2a7406a to your computer and use it in GitHub Desktop.
Save amaxwell01/c2ce95a1d221d0fd5dc2a0ded2a7406a to your computer and use it in GitHub Desktop.
Get a list of movie names from my Google Play Movies collection
/*
* 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