forked from tanner/qotnews
add the bulletin.
This commit is contained in:
parent
c5fe5d25a0
commit
4e64cf682a
|
@ -16,14 +16,16 @@ INVALID_DOMAINS = ['youtube.com', 'bloomberg.com', 'wsj.com']
|
|||
TWO_DAYS = 60*60*24*2
|
||||
|
||||
webworm = substack.Publication("https://www.webworm.co")
|
||||
bulletin = substack.Publication("https://thespinoff.substack.com")
|
||||
|
||||
def list():
|
||||
feed = []
|
||||
feed += [(x, 'hackernews') for x in hackernews.feed()[:10]]
|
||||
feed += [(x, 'tildes') for x in tildes.feed()[:10]]
|
||||
feed += [(x, 'webworm') for x in webworm.feed()[:15]]
|
||||
feed += [(x, 'reddit') for x in reddit.feed()[:15]]
|
||||
feed += [(x, 'substack') for x in substack.top.feed()[:15]]
|
||||
feed += [(x, 'reddit') for x in reddit.feed()[:15]]
|
||||
feed += [(x, 'webworm') for x in webworm.feed()[:15]]
|
||||
feed += [(x, 'the bulletin') for x in bulletin.feed()[:15]]
|
||||
return feed
|
||||
|
||||
def get_article(url):
|
||||
|
@ -83,6 +85,8 @@ def update_story(story, is_manual=False):
|
|||
res = tildes.story(story['ref'])
|
||||
elif story['source'] == 'webworm':
|
||||
res = webworm.story(story['ref'])
|
||||
elif story['source'] == 'the bulletin':
|
||||
res = bulletin.story(story['ref'])
|
||||
elif story['source'] == 'substack':
|
||||
res = substack.top.story(story['ref'])
|
||||
elif story['source'] == 'manual':
|
||||
|
|
Loading…
Reference in New Issue
Block a user