Refactor class instantiation to remove the need to repeat 'retries' everywhere

This commit is contained in:
JustAnotherArchivist
2021-09-30 09:58:10 +00:00
parent d4567da23c
commit 5e829e2541
8 changed files with 19 additions and 25 deletions

View File

@@ -149,4 +149,4 @@ class WeiboUserScraper(snscrape.base.Scraper):
else:
uid = None
name = args.user
return cls(name = name, uid = uid, retries = args.retries)
return cls._construct(args, name = name, uid = uid)