I want to programmatically check if a site has feeds. How can I do that?
Are there standard feed locations? Parsing the code for link tags with application/rss+xml attribute would be enough?
Thank you.
I want to programmatically check if a site has feeds. How can I do that?
Are there standard feed locations? Parsing the code for link tags with application/rss+xml attribute would be enough?
Thank you.
Parsing the code for link tags with application/rss+xml attribute would be enough?
As far as I know, it is the only standard way to discover feeds. But that is no guarantee that you'll find them all.
You might want to read this resource for information on discovering feeds. Replace "application/atom+xml" with "application/rss+xml" as necessary.
Use the Zend_Feed classes from Zend_Framwework. Zend_Feed::findFeeds does what you want.