From e367129b5f5efa0cd9eb64a90fc2a146c6e68f93 Mon Sep 17 00:00:00 2001 From: Relakkes Date: Sat, 13 Apr 2024 13:48:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dpr#229=E7=9A=84?= =?UTF-8?q?=E5=B0=8Fbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 94e4d20..9a97494 100644 --- a/main.py +++ b/main.py @@ -40,7 +40,7 @@ async def main(): choices=["search", "detail", "creator"], default=config.CRAWLER_TYPE) parser.add_argument('--start', type=int, help='crawler type (number of start page)', default=config.START_PAGE) - parser.add_argument('--keyword', type=str, help='crawler type (please input keywords)', + parser.add_argument('--keywords', type=str, help='crawler type (please input keywords)', default=config.KEYWORDS) # init db @@ -54,7 +54,7 @@ async def main(): login_type=args.lt, crawler_type=args.type, start_page=args.start, - keyword=args.key + keyword=args.keywords ) await crawler.start()