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:
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:
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