瀏覽代碼

更改爬取url域名

Your Name 6 年之前
父節點
當前提交
7961214bab
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      hg3535/spiders/roll_lanqiu.py

+ 1 - 2
hg3535/spiders/roll_lanqiu.py

@@ -66,8 +66,7 @@ class LanqiuSpider(scrapy.Spider):
                     for es in egs:
                         es = es['es']
                         for e in es:
-                            # match_id = e['i'][16]
-                            match_id = 3460582
+                            match_id = e['i'][16]
                             self.rls.sadd('hg3535.gunqiu.ids', match_id)
                             up_time = str(time.time()) + '&' + 'lq'
                             self.rls.hset('hg3535.ball.ids', match_id, up_time)