How to find an RSS feed on a specific website?

How to find an RSS feed on a specific website? Is there any specific way to find it?

+42
rss
Jun 13 2018-11-11T00:
source share
4 answers

You may be able to find it by looking at the source of the home page (or blog). Find the line that looks like this:

<link rel="alternate" type="application/rss+xml" title="RSS Feed" href="http://example.org/rss" /> 

The href value will be where the RSS is.

+61
Jun 13 '11 at 6:10
source share

There are several ways to get an RSS feed from a website.

What you can do is get the source code of the website and find this link tag type="application/rss+xml"

This will contain the RSS feed of this website, if any.

Here is a simple python program that will print the RSS feed of any website, if any.

 import requests from bs4 import BeautifulSoup def get_rss_feed(website_url): if website_url is None: print("URL should not be null") else: source_code = requests.get(website_url) plain_text = source_code.text soup = BeautifulSoup(plain_text) for link in soup.find_all("link", {"type" : "application/rss+xml"}): href = link.get('href') print("RSS feed for " + website_url + "is -->" + str(href)) get_rss_feed("http://www.extremetech.com/") 

Save this file with the extension .py and run it. It will provide you with the rss feed url of this website.

Google also provides APIs for finding website RSS feeds. Please find them here: Google Feed API

+13
Nov 13 '14 at 14:14
source share

You need to look at all the URLs on your website, and then find the file containing "rss".

The method above may not work in some cases if the URL in the href tag looks something like feed.xml , so in this case you will need to skip all the tags containing href AND rss, and then just parse the URL from href attribute.

If you want to do this through a browser, press CTRL + U to view the source, then CTRL + F to open the search box, and then just enter rss . The RSS feed URL should appear immediately.

0
Aug 6 '17 at 18:52
source share

I needed to find sites with RSS feeds. Using Visual Studio (VB), I was able to do this. The following code is just a snippet. He dies after the cycle ends, but finds a link to the rss page on the site. That’s all I need, so I haven’t finished it. But it worked for me.

Imports System.Net Imports System.IO

... Dim request As WebRequest request = WebRequest.Create (" http: // www. [Site] ")

  Dim response As WebResponse = request.GetResponse() Dim responseStream As Stream = response.GetResponseStream() Dim reader As New StreamReader(responseStream) Dim line As String = reader.ReadLine() Dim intPos As Integer Do line = reader.ReadLine() intPos = line.IndexOf("/rss") If intPos > 0 Then MessageBox.Show(line + " " + intPos.ToString) End If Loop While Not line Is Nothing 

....

-3
Jan 27 '15 at
source share



All Articles