Add reddit to feeds

This commit is contained in:
2019-08-24 21:37:43 +00:00
parent 4450e93c65
commit a2509958da
4 changed files with 70 additions and 2 deletions

View File

@@ -30,7 +30,6 @@ def comment(i):
c['score'] = i.get('points', 0)
c['date'] = i.get('created_at_i', 0)
c['text'] = i.get('text', '')
c['link'] = SITE_LINK(i['id'])
c['comments'] = [comment(j) for j in i['children']]
return c
@@ -64,4 +63,5 @@ def story(ref):
return s
if __name__ == '__main__':
print(feed())
print(story(20763961))