How to open RSS feeds for a given site

The quest, given the site url (say /qaru.site / ... ), returns a list of all channels available on the site. Possible methods:

a) use a third party service (google ?, yahoo?, ...) programmatically b) use a finder / spider (and some tips on how to set up a spider to return only rss / xml feeds) c) programmatically using c / C ++ / php (any language / library)

The challenge here is not to get the feeds contained in the page returned by the url, but ALL feeds that are available on the server at any depth ... anyway, please provide a simple use case.

+2


a source to share


1 answer


The only way I know is to depend on the RSS discovery protocol, which has been around for about 4 years. Crawl your site and look at HTML pages for auto-detect RSS tags:



<link rel="alternate" type="application/rss+xml" 
      title="Something" 
      href="http://www.example.com/feed1.xml" />

      

+1


a source







All Articles