Jelajahi Sumber

Merge branch 'master' of https://git.fop.pe/Foppe/scratchings

Afwas [1337627 6 tahun lalu
induk
melakukan
e80fad3c7c
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      _bs.py

+ 2 - 2
_bs.py

@@ -167,13 +167,13 @@ def process_scratchings(this_data, this_venue):
         return
     scratchings_count = this_scr.select('table')[0].select('tr')[2].select('td')[3].getText()
     # print('{}: scratchings_count {}'.format(this_venue.name, scratchings_count))
-    header = this_scr.select('h3', text=re.compile('Scratchings'))[0]
+    header = this_scr.findAll('h3', text=re.compile('Scratchings'))[0]
     div = header.findNext('table')
 
     scratchings = set()
     early_scratchings = scrape_scratchings(div, this_venue)
     scratchings.update(early_scratchings)
-    header = this_scr.select('h3', text=re.compile('Late Scratchings'))[0]
+    header = this_scr.findAll('h3', text=re.compile('Late Scratchings'))[0]
     late_div = header.findNext('table')
     late_scratchings = scrape_scratchings(late_div, this_venue)
     if this_venue.name == 'Corowa':