How To Discover RSS Feeds for a given URL

后端 未结 6 1805
猫巷女王i
猫巷女王i 2020-12-01 00:45

I get a URL from a user. I need to know:
a) is the URL a valid RSS feed?
b) if not is there a valid feed associated with that URL

using PHP/Javascript or s

6条回答
  •  不知归路
    2020-12-01 01:35

    Found something that I wanted:

    Google's AJAX Feed API has a load feed and lookup feed function (Docs here).

    a) Load feed provides the feed (and feed status) in JSON

    b) Lookup feed provides the RSS feed for a given URL

    Theres also a find feed function that searches for RSS feeds based on a keyword.

    Planning to use this with JQuery's $.getJSON

提交回复
热议问题