Your Name 6 år sedan
förälder
incheckning
cb5a07e6fc
3 ändrade filer med 5 tillägg och 5 borttagningar
  1. 2 2
      hg3535/main.py
  2. 1 1
      hg3535/pipeline/roll_zuqiu.py
  3. 2 2
      hg3535/spiders/roll_lanqiu.py

+ 2 - 2
hg3535/main.py

@@ -9,10 +9,10 @@ sys.path.append(os.path.dirname(os.path.abspath(__file__)))
 # execute(["scrapy", "crawl", "guanjun"])
 # execute(["scrapy", "crawl", "wangqiu"])
 # execute(["scrapy", "crawl", "bangqiu"])
-execute(["scrapy", "crawl", "roll_zuqiu"]) # 滚球足球 回来要解开这个注释 其他全部解封
+# execute(["scrapy", "crawl", "roll_zuqiu"]) # 滚球足球 回来要解开这个注释 其他全部解封
 # execute(["scrapy", "crawl", "roll_lanqiu"]) #滚球篮球
 # execute(["scrapy", "crawl", "roll_wangqiu"]) #滚球网球
-# execute(["scrapy", "crawl", "roll_bangqiu"])  # 滚球棒球
+execute(["scrapy", "crawl", "roll_bangqiu"])  # 滚球棒球
 # execute(["scrapy", "crawl", "saiguo"]) #滚球id结束时间更新状态
 # execute(["scrapy", "crawl", "jieshu"]) #滚球id结束时间更新状态
 # execute(["scrapy", "crawl", "zhibo"]) #滚球id结束时间更新状态

+ 1 - 1
hg3535/pipeline/roll_zuqiu.py

@@ -585,7 +585,7 @@ class Roll_Zuqiupipeline(object):
                     if res.get('status') == 1:
                         logger.info('足球滚球结果记录提交成功, {}'.format(res))
                         self.db.zq_match_result35.insert(zq_rball)
-                        logger.info(r_data_dict)
+                        # logger.info(r_data_dict)
                     else:
                         logger.warning('足球滚球结果记录提交失败, {}, {}'.format(res, r_data_dict))
                         # logger.warning(r_data_dict)

+ 2 - 2
hg3535/spiders/roll_lanqiu.py

@@ -45,8 +45,8 @@ class LanqiuSpider(scrapy.Spider):
         "ITEM_PIPELINES": {
             "hg3535.pipeline.roll_lanqiu.Roll_Lanqiupipeline": 200,
         },
-        # 'LOG_LEVEL': 'DEBUG',
-        # 'LOG_FILE': "./log/roll_lanqiu_{}_{}_{}.log".format(to_day.year, to_day.month, to_day.day)
+        'LOG_LEVEL': 'DEBUG',
+        'LOG_FILE': "./log/roll_lanqiu_{}_{}_{}.log".format(to_day.year, to_day.month, to_day.day)
     }
 
     rls = redis.Redis(host=R_HOST, port=R_POST, db=R_DB, password=R_PASSWORD)