Python Forum
Find today's RSS entries with feedparser
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Find today's RSS entries with feedparser
#1
I'm trying to create the worlds most basic RSS reader - I just want to know the number (len) of entries that were only created TODAY. I don't care if anything older was modified on today, just entries created.

Should I even be using feedparser do this? It seems I could just findAll <datepub> tags with BeautifulSoup and match it today's date, but everyone insists I should be using feedparser. Note: I'm still new at this, so it's hours of struggling either way.

Here's where I'm at - this shows that I have 50 entries:

import feedparser
dgtw = feedparser.parse('https://investorshub.advfn.com/boards/rss.aspx?board_id=22658')
print (len(dgtw['entries']))
This just shows the published date of the first entry:

print(dgtw.entries[0].published)
I just want to findAll published dates that match today's date and give me a len number/return.

I don't see anything in the docs about this specifically: https://pythonhosted.org/feedparser/date-parsing.html
Reply


Messages In This Thread
Find today's RSS entries with feedparser - by Biks - Jun-11-2019, 11:40 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020