From ec012b7d2b915db24cd8b23f723bf18dfe75b7d6 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期一, 16 十二月 2024 11:13:31 +0800 Subject: [PATCH] 网页代码修改/结构调整 --- kpl/kpl_api.py | 18 +++++++++++++++--- 1 files changed, 15 insertions(+), 3 deletions(-) diff --git a/kpl/kpl_api.py b/kpl/kpl_api.py index 3de064d..5b0aafc 100644 --- a/kpl/kpl_api.py +++ b/kpl/kpl_api.py @@ -93,8 +93,8 @@ # 甯傚満琛屾儏-绮鹃�� -def getMarketJingXuanRealRankingInfo(orderJingE_DESC=True): - data = f"Order={1 if orderJingE_DESC else 0}&a=RealRankingInfo&st=20&apiv=w32&Type=5&c=ZhiShuRanking&PhoneOSNew=1&DeviceID=a38adabd-99ef-3116-8bb9-6d893c846e23&VerSion=5.8.0.2&Index=0&ZSType=7&" +def getMarketJingXuanRealRankingInfo(page=1, orderJingE_DESC=True): + data = f"Order={1 if orderJingE_DESC else 0}&a=RealRankingInfo&st=50&apiv=w32&Type=5&c=ZhiShuRanking&PhoneOSNew=1&DeviceID=a38adabd-99ef-3116-8bb9-6d893c846e23&VerSion=5.8.0.2&Index={page - 1}&ZSType=7&" response = __base_request("https://apphq.longhuvip.com/w1/api/index.php", data=data) if response.status_code != 200: @@ -183,6 +183,18 @@ return data["info"] +def getMarketStrong(): + """ + 鑾峰彇甯傚満寮哄害 + :return: + """ + result = __base_request("https://apphwhq.longhuvip.com/w1/api/index.php", + f"a=DiskReview&apiv=w35&c=HomeDingPan&VerSion=5.13.0.0&PhoneOSNew=1&DeviceID=d6f20ce9-fa08-31c9-a493-536ebb8e9773&") + data = result.text + data = json.loads(data) + return int(data["info"]["strong"]) + + def test_l2(): code = "600981" count = 0 @@ -197,4 +209,4 @@ if __name__ == '__main__': - print(getMarketFelling()) + print(int(getMarketStrong())) -- Gitblit v1.8.0