From 9da97a054703202842cd12055f91188b2942559e Mon Sep 17 00:00:00 2001 From: JohnserfSeed Date: Fri, 4 Aug 2023 21:53:27 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A5=87=E6=96=B0=E7=89=88Tool=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E5=85=A5=E5=8F=A3=20#155=20#191=20#202=20#203=20#206?= =?UTF-8?q?=20#220=20#226=20#227=20#243=20#267=20#287=20#294=20#312=20#320?= =?UTF-8?q?=20#332=20#335=20#341=20#343=20#346=20#355=20#357=20#360=20#361?= =?UTF-8?q?=20#362=20#364=20#365=20#367=20#370=20#372=20#374=20#376=20#377?= =?UTF-8?q?=20#379=20#380=20#381=20#382=20#383=20#393=20#394=20#397=20#398?= =?UTF-8?q?=20#399=20#401=20#402=20#403=20#404=20#406=20#407=20#408=20#410?= =?UTF-8?q?=20#414=20#416=20#419=20#420=20#422=20#423=20#426=20#431=20#432?= =?UTF-8?q?=20#433=20#434=20#435=20#436=20#437=20#446=20#448=20#449=20#450?= =?UTF-8?q?=20#451=20#452=20#454=20#455=20#456=20#567=20#460=20#466=20#469?= =?UTF-8?q?=20#470=20#471=20#472=20#475=20#476=20#477=20#480=20#481=20#483?= =?UTF-8?q?=20#484=20#485?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #155 #191 #202 #203 #206 #220 #226 #227 #243 #267 #287 #294 #312 #320 #332 #335 #341 #343 #346 #355 #357 #360 #361 #362 #364 #365 #367 #370 #372 #374 #376 #377 #379 #380 #381 #382 #383 #393 #394 #397 #398 #399 #401 #402 #403 #404 #406 #407 #408 #410 #414 #416 #419 #420 #422 #423 #426 #431 #432 #433 #434 #435 #436 #437 #446 #448 #449 #450 #451 #452 #454 #455 #456 #567 #460 #466 #469 #470 #471 #472 #475 #476 #477 #480 #481 #483 #484 #485 --- TikTokTool.py | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/TikTokTool.py b/TikTokTool.py index 28bb930..5e41e92 100644 --- a/TikTokTool.py +++ b/TikTokTool.py @@ -12,23 +12,18 @@ Change Log : 2022/07/29 23:19:14 : Init 2023/03/10 16:22:19 : gen dyheaders +2023/08/04 02:09:31 : async download ------------------------------------------------- ''' import Util -class Tool(): - def __init__(self): - pass - if __name__ == '__main__': - # 获取命令行参数 + # 获取命令行和配置文件 cmd = Util.Command() - # 获取headers - headers = Util.Cookies(cmd.setting()).dyheaders - # 获取主页内容 - profile = Util.Profile(headers) - # 使用参数并下载 - profile.getProfile(cmd.setting()) + config = cmd.config_dict + dyheaders = cmd.dyheaders - input('[ 完成 ]:已完成批量下载,输入任意键后退出:') + # 异步下载作品 + Util.asyncio.run(Util.Profile(config, dyheaders).get_Profile()) + input("[ 提示 ]:下载完成,输入任意键退出。") \ No newline at end of file