Quantcast
Channel: How to parse an RSS feed using JavaScript? - Stack Overflow
Viewing all articles
Browse latest Browse all 10

Answer by Nahuel Barrios for How to parse an RSS feed using JavaScript?

$
0
0

Another deprecated(thanks to @daylight) option, and the easiest for me (this is what I'm using for SpokenToday.info):

The Google Feed API without using JQuery and with only 2 steps:

  1. Import the library:

    <script type="text/javascript" src="https://www.google.com/jsapi"></script><script type="text/javascript">google.load("feeds", "1");</script>
  2. Find/Load feeds (documentation):

    var feed = new google.feeds.Feed('http://www.google.com/trends/hottrends/atom/feed?pn=p1');feed.load(function (data) {    // Parse data depending on the specified response format, default is JSON.    console.dir(data);});
  3. To parse data, check documentation about the response format.


Viewing all articles
Browse latest Browse all 10

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>