Created
September 10, 2018 13:04
-
-
Save gorka/758e97a0edf19a009f0137e00f87d509 to your computer and use it in GitHub Desktop.
Get movies info from Letterboxd list page
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
// https://letterboxd.com/kun/list/atmospheric-slow-boiling-terrors-that-chill | |
var movies = document.querySelectorAll('.film-list li'); | |
var a = Array.prototype.map.call(movies, movie => { | |
const {filmId, filmLink, filmName, filmReleaseYear} = movie.querySelector('div').dataset | |
return {filmId, filmLink, filmName, filmReleaseYear} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment