Since Google doesn't provide any method to export or download your listening history, I wanted to find a way to preserve that data for later reference when setting up a new podcast app. I came up with the following script that can be run in your browser console to retrieve and export your Google Podcasts listening history as a CSV file.
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
/* | |
Way better than Reddit's official FAQ suggestion: https://reddit.zendesk.com/hc/en-us/articles/205243365 | |
1. Visit https://old.reddit.com/subreddits/mine using your old account | |
2. Find the link "multireddit of your subscriptions" in the sidebar, and copy its URL | |
The URL will look like this: https://old.reddit.com/r/[subreddit1+subreddit2+...+subredditN] | |
Please note that if you have a lot of subreddits the link might not work because there's a limit to the link's length | |
In that case you might want to split the link in two or three links | |
3. Visit that link (or links) using your new account | |
4. Open the console by pressing F12 (or Cmd+Opt+J on Mac) and then clicking the console tab. |
Collection of all query_hashes I could identify to get edge_follow
or edge_followed_by
data.
Entry URL is https://www.instagram.com/graphql/query/?query_hash=${hash}&variables={"id":"${userId}","first":"48"}
.
Replace ${hash}
with one of the five hashes below and ${userId}
with the logged in user ID (stored in ds_user_id
Cookie).
Hash | Type | Returned properties |
---|---|---|
58712303d941c6855d4e888c5f0cd22f | edge_follow | followed_by_viewer , is_verified , requested_by_viewer |
d04b0a864b4b54837c0d870b0e77e076 | edge_follow | followed_by_viewer , is_verified , requested_by_viewer , is_private |
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
!============================ | |
! YouTube Menus | |
!============================ | |
!hide voice search button in top nav | |
youtube.com###voice-search-button | |
!hide "Explore" in sidebar | |
youtube.com##ytd-guide-entry-renderer:has-text(Explore) | |
youtube.com##ytd-guide-section-renderer:has(h3:has-text(/Explore/)) |