init commit
This commit is contained in:
8
compiler/comp/rss.py
Normal file
8
compiler/comp/rss.py
Normal file
@@ -0,0 +1,8 @@
|
||||
import feedparser
|
||||
|
||||
def rssfeed(url,raw):
|
||||
al=[]
|
||||
f=feedparser.parse(raw)
|
||||
for e in f['entries']:
|
||||
al.append(e['link'])
|
||||
return {"url": url, "next_page": None, "article_links": al, "objecttype":"index"}
|
||||
Reference in New Issue
Block a user