import feedparser import pandas as pd rss_source = feedparser.parse("https://www.newsfirst.lk/feed/") rss_source post_number = len(rss_source.entries) print("Post Number: ", post_number) for x in range(post_number): News_content = rss_source.entries[x] print("\n======================================\n") print("Post: " + str(x)) print("Title: ", News_content.title) print("Content: ", News_content.summary) print("\n") print("Link: ", News_content.link) print("Published: ", News_content.published)