From cfebd5709328c4ce3924abeae6229e1f9157ff4c Mon Sep 17 00:00:00 2001 From: wbt5 Date: Mon, 8 Nov 2021 22:35:00 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81=20?= =?UTF-8?q?AcFun=E7=9B=B4=E6=92=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- acfun.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/acfun.py b/acfun.py index f6253a1..ecfadb0 100644 --- a/acfun.py +++ b/acfun.py @@ -32,7 +32,7 @@ class AcFun: 'did': 'H5_', 'acfun.api.visitor_st': visitor_st } - data = 'authorId={}&pullStreamType=FLV'.format(self.rid) + data = f'authorId={self.rid}&pullStreamType=FLV' res = s.post(url, params=params, data=data, headers=headers).json() if res['result'] == 1: data = res['data'] @@ -58,4 +58,3 @@ def get_real_url(rid): if __name__ == '__main__': r = input('请输入AcFun直播房间号:\n') print(get_real_url(r)) -