From 226525b173782ade09f35d66df1f5ec4e77a8ab0 Mon Sep 17 00:00:00 2001 From: pengtao Date: Tue, 15 Oct 2019 15:24:26 +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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/data_channel/mp2shushu.py b/data_channel/mp2shushu.py index d1ba5fd..4e2e7f7 100644 --- a/data_channel/mp2shushu.py +++ b/data_channel/mp2shushu.py @@ -13,13 +13,13 @@ class Mp2shushu(): def get_ad_list(self): r = requests.get(self.mp_url) if r.status_code == requests.codes.ok: - print(f"1 {r.json()}") + log.info(f"1 {r.json()}") return self.split_data(r.json()) else: return None def split_data(self, data): - print(f"2 {data}") + log.info(f"2 {data}") try: result = data['result'] begin = "b_n,b_n_china" @@ -42,6 +42,7 @@ class Mp2shushu(): def run(self): + log.info("start run") data = self.get_ad_list() log.info(f"get data was {data}") self.write2csv(data)