From 42887a6baf492bf70e34ec1f61e8b5aaffb20f3e Mon Sep 17 00:00:00 2001 From: Evil0ctal Date: Fri, 3 Jun 2022 19:18:20 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=E4=BF=AE=E5=A4=8DTikTok=20APP?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=E8=A7=A3=E6=9E=90=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scraper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scraper.py b/scraper.py index d20f6dc..bd3ff72 100644 --- a/scraper.py +++ b/scraper.py @@ -2,7 +2,7 @@ # -*- encoding: utf-8 -*- # @Author: https://github.com/Evil0ctal/ # @Time: 2021/11/06 -# @Update: 2022/05/22 +# @Update: 2022/06/03 # @Function: # 核心代码,估值1块(๑•̀ㅂ•́)و✧ # 用于爬取Douyin/TikTok数据并以字典形式返回。 @@ -285,7 +285,7 @@ class Scraper: # 开始时间 start = time.time() # 校验TikTok链接 - if original_url[:12] == "https://www.": + if '@' in original_url: original_url = original_url print("目标链接: ", original_url) else: