From e3b91d4c883debe8f9956f68f8b497574092935a Mon Sep 17 00:00:00 2001 From: wbt5 Date: Sun, 7 Nov 2021 20:43:43 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 2cq.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/2cq.py b/2cq.py index b12b574..6094d8e 100644 --- a/2cq.py +++ b/2cq.py @@ -10,7 +10,7 @@ class MHT: def get_real_url(self): with requests.Session() as s: - res = s.get('https://www.2cq.com/proxy/room/room/info?roomId={}&appId=1004'.format(self.rid)) + res = s.get(f'https://www.2cq.com/proxy/room/room/info?roomId={self.rid}&appId=1004') res = res.json() if res['status'] == 1: result = res['result'] @@ -35,4 +35,3 @@ def get_real_url(rid): if __name__ == '__main__': r = input('输入棉花糖直播房间号:\n') print(get_real_url(r)) -