In the article, we will be seeing how to extract feed and post details using RSS feed for a Hashnode blog. Although we are going to use it for blogs on Hashnode it can be used for other feeds as well.
RSS means Rich Site Summary and uses standard web formats to publish information that changes frequently like blog posts, news, audio, video, etc. RSS documents often know as feed which consists of text, and metadata, like time and author’s name.
Installing feed parser:
We will be using the Feedparser python library for parsing the RSS feed of the blog. It is quite a popular library for parsing blog feeds.
pip install feedparser
Let’s understand this stepwise:
Step 1: Getting RSS feed
Use the feedparser.parse() function for creating a feed object which contains parsed blog. It takes the URL of the blog feed.
Please Login to comment...