cosmicbot/rss.py

9 lines
164 B
Python
Raw Permalink Normal View History

2018-12-02 01:18:39 +00:00
import time, feedparser
def fetchNew(url,old):
ret = []
for entry in feedparser.parse(url).entries:
if entry.guid not in old:
ret.append(entry)
return ret