Extract your viewing activity data from Netflix.
Before you start, don't forget to install dependencies with npm install
- Go to https://www.netflix.com/WiViewingActivity
- Make sure you're logged in and can see some activity
- Open your browser developer tools and open the network monitoring
- Scroll the Netflix page to the bottom, requesting more data
- Inspect the network request, you'll be grabbing 3 pieces of data:
- Build number:
api/shakti/<build_number>/viewingactivity - Secure Netflix Id cookie:
SecureNetflixIdin theCookieheader - Netflix Id cookie:
NetflixIdin theCookieheader
- Build number:
- Create a
.envfile with those three values, under the variable namesBUILD_ID,SECURE_NETFLIX_IDandNETFLIX_IDrespectively - Time to get some data - use
npm startto kick off the script - If it's all working, you'll get an
outputdirectory created with the raw responses and the viewing activity sliced by day.