View on GitHub

Feednami

A lightweight Javascript client for downloading RSS/Atom feeds

Feednami

Google Feed API is dead! It was deprecated a long time ago, but people were still using it and when it finally went offline a lot of people had problems, so I made this!

This is a work in progress. I don't know what costs are going to be associated with keeping this online but for now I want to keep it free and open to anyone who is willing to test it!

Check out examples here!

How to use

Import

<script src="https://storage.googleapis.com/feednami-static/js/feednami-client-v1.0.1.js"></script>

Load a feed

Fetch your favorite blog or podcast!

<script>
  var url = 'http://daringfireball.net/feeds/articles'
  feednami.load(url,function(result){
    if(result.error){
      console.log(result.error)
    }
    else{
      var entries = result.feed.entries
      for(var i = 0; i < entries.length; i++){
        var entry = entries[i]
        console.log(entry.title)
      }
    }
  })
</script>

For the former Google API users

feednami.loadGoogleFormat replicates as best as possible the Google Feed API. For example, the content attribute of an entry corresponsds to <content>, <summary>, or <description>, whereas by default, all three are returned with the unset values as null.

<script>
  var url = 'http://daringfireball.net/feeds/articles'
  feednami.loadGoogleFormat(url,function(result){
    if(result.error){
      console.log(result.error)
    }
    else{
      var entries = result.feed.entries
      for(var i = 0; i < entries.length; i++){
        var entry = entries[i]
        console.log(entry.title)
        console.log(entry.contentSnippet) 
        // the first 120 characters of the entry
      }
    }
  })
</script>

For more documentation check the client repository on Github!