Created
May 23, 2019 15:57
-
-
Save devender-yadav/bb2405bcc298ce45aad1c93338184396 to your computer and use it in GitHub Desktop.
Fetch RSS feeds from TOI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import feedparser | |
NewsFeed = feedparser.parse("https://timesofindia.indiatimes.com/rssfeedstopstories.cms") | |
print ('Number of RSS posts :', len(NewsFeed.entries)) | |
entry = NewsFeed.entries[1] | |
print('Post Title :',entry.title) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment