Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

export "saved for later" from (evil) feedly

i'm trying to migrate from feedly as it is unacceptable (at least to me) that a search query is (fully) enabled only by a pro version.

Anyhow, to export my lengthy list of "saved for later" i found some lovely scripts: Simple script that exports a users "Saved For Later" list out of Feedly as a JSON string and feedly-to-pocket. where i am instructed to:

You must switch off SSL (http rather than https) or jQuery won't load!

so i though i did by adding (ubuntu 14.04/chrome 40 x64)

--ssl-version-min=tls1

to my /usr/share/applications/google-chrome.desktop file (all lines starting with Exec=). However when i try to run it in the browser console i get

This request has been blocked; the content must be served over HTTPS.

So, any suggestions? (also, excuse me for noobness)

like image 252
gep Avatar asked Jan 18 '26 16:01

gep


2 Answers

  1. Go to your Feedly "saved" list and scroll down until all articles have loaded.
  2. Open console and paste the following Javascript into it:

    function loadJQuery() {
    
        script = document.createElement('script');
        script.setAttribute('src', '//code.jquery.com/jquery-2.1.3.js');
        script.setAttribute('type', 'text/javascript');
        script.onload = loadSaveAs;
        document.getElementsByTagName('head')[0].appendChild(script);
    }
    
    function loadSaveAs() {
    
        saveAsScript = document.createElement('script');
        saveAsScript.setAttribute('src', 'https://cdn.rawgit.com/eligrey/FileSaver.js/5733e40e5af936eb3f48554cf6a8a7075d71d18a/FileSaver.js');
        saveAsScript.setAttribute('type', 'text/javascript');
        saveAsScript.onload = saveToFile;
        document.getElementsByTagName('head')[0].appendChild(saveAsScript);
    }
    
    function saveToFile() {
    
        // Loop through the DOM, grabbing the information from each bookmark
        map = jQuery(".entry.quicklisted").map(function(i, el) {
            var $el = jQuery(el);
            var regex = /Published:(.*)(.*)/i;
            return {
                title: $el.attr("data-title"),
                url: $el.attr("data-alternate-link"),
                summary: $el.find(".summary")[0].innerHTML,
                time: regex.exec($el.find("span.ago").attr("title"))[1]
            };
        }).get(); // Convert jQuery object into an array
    
        // Convert to a nicely indented JSON string
        json = JSON.stringify(map, undefined, 2);
        var blob = new Blob([json], {type: "text/plain;charset=utf-8"});
        saveAs(blob, "FeedlySavedForLater" + Date.now().toString() + ".txt");
    }
    
    loadJQuery()
    

Source: Feedly-Export-Save4Later

like image 130
Nikki Avatar answered Jan 21 '26 06:01

Nikki


Not javascript but here is how I saved a html page with all the links and excerpts...

  1. Open the saved pages in feedly in chrome
  2. scroll down so they are all there
  3. inspect any element (the top article is a good choice) so it opens the generated html
  4. find the div id="section0_column0" node
  5. right-click & copy it
  6. paste into Notepad++
  7. this html is untidy so carry on...
  8. Do a Regex find & replace
    1. find: (?s)<div id=.+?_main.+?>.+?(<a href=")(.+?)(").+?sans-serif">(.+?)</span>.+?</div>.+?</div>.+?</div>
    2. replace: <div>$1$2$3>$2</a></div> <div> $4<br />&nbsp;<br /></div>
  9. save the html page.
  10. open it in Chrome
like image 23
CAD bloke Avatar answered Jan 21 '26 06:01

CAD bloke



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!