Skip to content

Instantly share code, notes, and snippets.

@guillaumerxl
Last active April 17, 2016 10:13
Show Gist options
  • Save guillaumerxl/a87a7d14fc581f27d903 to your computer and use it in GitHub Desktop.
Save guillaumerxl/a87a7d14fc581f27d903 to your computer and use it in GitHub Desktop.
Retrieve saved for laters links from Feedly
// No JQuery version of https://gist.github.com/bradcrawford/7288411
// Modified to return a blob with the json results
// Simple script that exports a users "Saved For Later" list out of Feedly
// as a JSON string.
// How to use:
// 1) Open up your browser
// 2) Login to Feedly and go to the "Saved For Later" list.
// 3) Keep scrolling down the page until all saved documents have been loaded
// 4) Right click on the page and select "Inspect Element"
// 5) Inside the "Inspector" tool, click the "Console" tab.
// 6) Paste the script below into the console
// 7) Paste the url in your browser navigation bar (looks like blob:https://feedly.com/df84c9ce-e082-4d9f-a8af-b3e05258959e)
var links = []
var elements = document.querySelectorAll("#timeline div.u4Entry.quicklisted")
for (var i = 0; i < elements.length; i++) {
var el = elements[i]
links.push({
title: el.dataset['title'],
url: el.dataset['alternateLink'],
})
}
json = JSON.stringify(links, undefined, 2)
function open() {
var blob = new Blob([json], {type: "application/json"})
var url = URL.createObjectURL(blob)
return url
}
open()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment