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
#6
#one option might be using of filtering the dates using system dates

from datetime import datetime
import feedparser

# Current date time in local system
dt = datetime.now()
today = datetime.today().day
count = 0

dgtw = feedparser.parse('https://investorshub.advfn.com/boards/rss.aspx?board_id=22658')

if dt==today:
   for each in range(len(dgtw['entries'])):
          count += 1
print(count)
Reply


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

Forum Jump:

User Panel Messages

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