From 23a182879c30fa09fa28f4e57ec913559d787e81 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Thu, 14 Oct 2021 21:15:12 +0700 Subject: Add basic documentation --- src/rsskey.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/rsskey.py') 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']) -- cgit 1.4.1