Your Name 4 anos atrás
pai
commit
2a94c7eabc
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2
    2
      crawl/spiders/basketball_match.py

+ 2
- 2
crawl/spiders/basketball_match.py Ver arquivo

@@ -26,8 +26,8 @@ class BasketballSpider(scrapy.Spider):
26 26
       matchWeek = prop[0].css('::text').get()
27 27
       league = prop[1].css('::text').get()
28 28
       team = prop[2].css('::text').get().split('VS')
29
-      homeTeam = team[0].strip()
30
-      awayTeam = team[1].strip()
29
+      homeTeam = team[1].strip()
30
+      awayTeam = team[0].strip()
31 31
       matchTime = prop[3].css('::text').get()
32 32
       status = prop[5].css('::text').get()
33 33
       wl = self.parsePassWay(prop[6].css('img'))