for table in tables:
    table_soup = BeautifulSoup(table, 'html.parser')
advanced_table = table_soup.select_one('table[id^=box-score-advanced]')
for row in advanced_table('tr')[2:]:
    print(row.th.get_text())
print('-------')
Python - Unable to Retrieve Data From Webpage Table Using Beautiful Soup or lxml xpath