From ebe3be43ef676c39cd1cd63cc606df1a9e5b1995 Mon Sep 17 00:00:00 2001 From: imgyh <1974355683@qq.com> Date: Thu, 2 Mar 2023 21:28:10 +0800 Subject: [PATCH] =?UTF-8?q?fix(tiktok):=20cookies=E5=A2=9E=E5=8A=A0passpor?= =?UTF-8?q?t=5Fcsrf=5Ftoken?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TikTok.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TikTok.py b/TikTok.py index 1e1181a..fa0f4ca 100644 --- a/TikTok.py +++ b/TikTok.py @@ -34,7 +34,7 @@ class TikTok(object): self.headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36', 'referer': 'https://www.douyin.com/', - 'Cookie': f"msToken={self.utils.generate_random_str(107)}; ttwid={self.utils.getttwid()}; odin_tt=324fb4ea4a89c0c05827e18a1ed9cf9bf8a17f7705fcc793fec935b637867e2a5a9b8168c885554d029919117a18ba69;" + 'Cookie': f"msToken={self.utils.generate_random_str(107)}; ttwid={self.utils.getttwid()}; odin_tt=324fb4ea4a89c0c05827e18a1ed9cf9bf8a17f7705fcc793fec935b637867e2a5a9b8168c885554d029919117a18ba69; passport_csrf_token=f61602fc63757ae0e4fd9d6bdcee4810;" }