|
|
@@ -85,10 +85,10 @@ def get_meta_data(this_data, this_venue):
|
|
|
"""
|
|
|
this_soup = BeautifulSoup(this_data, 'html.parser')
|
|
|
early = this_soup.select('div.large')
|
|
|
- if early:
|
|
|
- print(early.get_text())
|
|
|
+ # if early:
|
|
|
+ # print(early.get_text())
|
|
|
if early and 'not currently available' in early.get_text():
|
|
|
- print(early.get_text())
|
|
|
+ # print(early.get_text())
|
|
|
return
|
|
|
try:
|
|
|
this_meta_data = this_soup.select('div.race-venue-bottom')[0].select('div.col2')[0]
|
|
|
@@ -134,7 +134,7 @@ def process_scratchings(this_data, this_venue):
|
|
|
except IndexError:
|
|
|
return
|
|
|
scratchings_count = this_scr.select('table')[0].select('tr')[2].select('td')[3].getText()
|
|
|
- print('{}: scratchings_count {}'.format(this_venue.name, scratchings_count))
|
|
|
+ # print('{}: scratchings_count {}'.format(this_venue.name, scratchings_count))
|
|
|
header = this_scr.select('h3', text=re.compile('Scratchings'))[0]
|
|
|
div = header.findNext('table')
|
|
|
old_race = 0
|