From 4b3cbc5b68520c7957bec84bd01e680f0896d424 Mon Sep 17 00:00:00 2001 From: pengtao Date: Tue, 15 Oct 2019 15:45:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A02001=20b=5FN=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data_channel/mp2shushu.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/data_channel/mp2shushu.py b/data_channel/mp2shushu.py index a2c6d83..0f16634 100644 --- a/data_channel/mp2shushu.py +++ b/data_channel/mp2shushu.py @@ -13,17 +13,15 @@ class Mp2shushu(): def get_ad_list(self): r = requests.get(self.mp_url) - log.info(f"url={self.mp_url}") if r.status_code == requests.codes.ok: - log.info(f"1 {r.json()}") return self.split_data(r.json()) else: return None def split_data(self, data): - log.info(f"2 {data['result']},{type(data['result'])}") + log.info(f"2 {data['result'].keys()}") try: - result = json.loads(data['result']) + result = data['result'] begin = "b_n,b_n_china" text = "" for key in result.keys():