Jun-11-2019, 11:40 PM
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:
This just shows the published date of the first entry:
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
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:
1 2 3 |
import feedparser print ( len (dgtw[ 'entries' ])) |
1 |
print (dgtw.entries[ 0 ].published) |
I don't see anything in the docs about this specifically: https://pythonhosted.org/feedparser/date-parsing.html