url = 'http://www.sports-reference.com/cbb/boxscores/2016-11-11-villanova.html'
response = requests.get(url)
soup = BeautifulSoup(response.content, 'html.parser')
tables = soup.find_all(text=lambda text: text and isinstance(text, Comment) and
    'Advanced Box Score Stats' in text)
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