From 4b2c4d52589d09e7c324f06f183ab263eb0e5c5a Mon Sep 17 00:00:00 2001 From: ysex <59272678+cnysex@users.noreply.github.com> Date: Tue, 31 May 2022 11:51:39 +0800 Subject: [PATCH] Update twitch.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Client-ID 改成 clientId --- twitch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twitch.py b/twitch.py index 62ac11d..15f5680 100644 --- a/twitch.py +++ b/twitch.py @@ -23,7 +23,7 @@ class Twitch: def get_client_id(self): try: res = self.s.get(f'https://www.twitch.tv/{self.rid}').text - client_id = re.search(r'"Client-ID":"(.*?)"', res).group(1) + client_id = re.search(r'clientId="(.*?)"', res).group(1) return client_id except requests.exceptions.ConnectionError: raise Exception('ConnectionError')