Your Name преди 4 години
родител
ревизия
2a94c7eabc
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2
    2
      crawl/spiders/basketball_match.py

+ 2
- 2
crawl/spiders/basketball_match.py Целия файл

@@ -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'))