瀏覽代碼

更改爬取url域名

Your Name 6 年之前
父節點
當前提交
2fe1d3eb49
共有 1 個文件被更改,包括 0 次插入12 次删除
  1. 0 12
      hg3535/pipeline/roll_zuqiu.py

+ 0 - 12
hg3535/pipeline/roll_zuqiu.py

@@ -31,18 +31,6 @@ class Roll_Zuqiupipeline(object):
     def _do_calculation(self, item, out):
         logger = logging.getLogger(__name__)
         pt = 4
-        # 比赛日期
-        # try:
-        #     data_game = item['data_game'].split("/")
-        #     month = str(data_game[1].strip())
-        #     day = str(data_game[0])
-        # except Exception as e:
-        #     logger.warning(e)
-        #     data_game = item['data_game'].split(" ")
-        #     months = str(data_game[1].strip())
-        #     month_dict = {'Jan': '01', 'Feb': '02', 'Mar': '03', 'Apr': '04', 'May': '05', 'Jun': '06', 'Jul': '07', 'Aug': '08', 'Sep': '09', 'Oct': '10', 'Nov': '11', 'Dec': '12'}
-        #     month = month_dict[months]
-        #     day = str(data_game[0])
         # 比赛时间
         time_game = str(item['time_game'])
         # 现在时间,时间戳