init commit

This commit is contained in:
Andreas Stephanides
2017-01-14 12:23:04 +01:00
commit 8955bf17f5
32 changed files with 1555 additions and 0 deletions

8
compiler/comp/rss.py Normal file
View 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"}