Created
January 16, 2016 05:29
-
-
Save bgrawi/56ca0bf3a1f86be72051 to your computer and use it in GitHub Desktop.
Bookmarklet that scrapes your history page and extracts the relevant data into json
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
JSON.stringify((Array.prototype.slice.call(document.querySelector("ul.retable").children)).map(function(elm) { return {date: elm.querySelector(".date").textContent, seriesId: elm.getAttribute("data-series"), movieId: elm.getAttribute("data-movieid"), title: elm.querySelector(".title").textContent}; })); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment