Skip to content

Instantly share code, notes, and snippets.

@bgrawi
bgrawi / netflix-history-scraper.js
Created January 16, 2016 05:29
Bookmarklet that scrapes your history page and extracts the relevant data into json
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}; }));

Keybase proof

I hereby claim:

  • I am bgrawi on github.
  • I am bgrawi (https://keybase.io/bgrawi) on keybase.
  • I have a public key whose fingerprint is 758F 0C5C 492A A95A D391 FC48 DE88 B4A9 86D8 B1C0

To claim this, I am signing this object: