diff options
author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-10-14 21:15:12 +0700 |
---|---|---|
committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-10-14 21:15:12 +0700 |
commit | 23a182879c30fa09fa28f4e57ec913559d787e81 (patch) | |
tree | 68c6538e0e3f4a8b3151b12fd1836ad58bd10708 /src/rsskey.py | |
parent | 2f50663bc527fd2c10e60ca9764e7b0728c97422 (diff) | |
download | rsskey-23a182879c30fa09fa28f4e57ec913559d787e81.tar.gz |
Add basic documentation 0.1.0
Diffstat (limited to 'src/rsskey.py')
-rwxr-xr-x | src/rsskey.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rsskey.py b/src/rsskey.py index f88bd7e..6e938e0 100755 --- a/src/rsskey.py +++ b/src/rsskey.py @@ -20,8 +20,7 @@ from contextlib import AsyncExitStack from functools import partial from re import split, sub -from dateutil.parser import parse as parse_time -from feedparser import parse as parse_feed +from feedparser import parse from httpx import AsyncClient from loca import Loca from markdownify import markdownify as md @@ -68,7 +67,7 @@ async def post(job, client, link, title, summary): async def mirror(nursery, job, client): """Perform the given mirror job.""" feed = await client.get(job['source']) - for entry in parse_feed(feed.text)['entries']: + for entry in parse(feed.text)['entries']: nursery.start_soon(post, job, client, entry['link'], entry['title'], entry['summary']) |