From 9213ef135f794672277724bac7798ef983816f8a Mon Sep 17 00:00:00 2001 From: Evil0ctal <20760448+Evil0ctal@users.noreply.github.com> Date: Mon, 26 Dec 2022 04:20:49 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B:=20Fix=20TikTok=20API=20`aid=3D198?= =?UTF-8?q?8`?= 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 b797a83..870ceb3 100644 --- a/scraper.py +++ b/scraper.py @@ -310,7 +310,7 @@ class Scraper: print('正在获取TikTok视频数据...') try: # 构造访问链接/Construct the access link - api_url = f'https://api16-normal-c-useast1a.tiktokv.com/aweme/v1/feed/?aweme_id={video_id}&aid=1180' + api_url = f'https://api16-normal-c-useast1a.tiktokv.com/aweme/v1/feed/?aweme_id={video_id}&aid=1988' print("正在获取视频数据API: {}".format(api_url)) async with aiohttp.ClientSession() as session: async with session.get(api_url, headers=self.tiktok_api_headers, proxy=self.proxies, timeout=10) as response: @@ -392,7 +392,7 @@ class Scraper: else { "User-Agent": self.tiktok_api_headers["User-Agent"], - "api_url": f'https://api16-normal-c-useast1a.tiktokv.com/aweme/v1/feed/?aweme_id={video_id}&aid=1180' + "api_url": f'https://api16-normal-c-useast1a.tiktokv.com/aweme/v1/feed/?aweme_id={video_id}&aid=1988' }, 'desc': data.get("desc"), 'create_time': data.get("create_time"),