From 3fec19972ca47756004d32ecc7eecdc34766896d Mon Sep 17 00:00:00 2001 From: SiHuan Date: Thu, 2 Apr 2020 21:48:59 +0800 Subject: [PATCH] update inx --- worker/inx.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/worker/inx.py b/worker/inx.py index bb5445f..eea7a26 100644 --- a/worker/inx.py +++ b/worker/inx.py @@ -35,8 +35,11 @@ class Ans(StdAns): def getMG(): - req = requests.get("https://hq.sinajs.cn/etag.php?_=1584712625172&list=gb_$inx,gb_$ixic,gb_$dji").text.split(',') - return req[2], req[29], req[56] + req = requests.get("https://hq.sinajs.cn/etag.php?_=1584712625172&list=gb_$inx,gb_$ixic,gb_$dji").text.split(';') + inx = req[0].split(',')[2] + ixic = req[1].split(',')[2] + dji = req[2].split(',')[2] + return inx, ixic, dji def emoji(p,n): n = float(n)