fix: 修复pr#229的小bug

This commit is contained in:
Relakkes 2024-04-13 13:48:29 +08:00
parent a341dc2aff
commit e367129b5f
1 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ async def main():
choices=["search", "detail", "creator"], default=config.CRAWLER_TYPE) choices=["search", "detail", "creator"], default=config.CRAWLER_TYPE)
parser.add_argument('--start', type=int, help='crawler type (number of start page)', parser.add_argument('--start', type=int, help='crawler type (number of start page)',
default=config.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) default=config.KEYWORDS)
# init db # init db
@ -54,7 +54,7 @@ async def main():
login_type=args.lt, login_type=args.lt,
crawler_type=args.type, crawler_type=args.type,
start_page=args.start, start_page=args.start,
keyword=args.key keyword=args.keywords
) )
await crawler.start() await crawler.start()