Вы можете ошибаться. Пожалуйста, используйте ID, чтобы найти. Вот решение, использующее упрощенный c.
import requests
from simplified_scrapy.simplified_doc import SimplifiedDoc
url = 'https://www.basketball-reference.com/boxscores/202001110HOU.html'
response=requests.get(url)
columns = ['Pname','MP','FG','FGA','FG%','3P','3PA',"3P%",
'FT','FTA','FT%','ORB','DRB','TRB','AST','STL','BLK','TOV','PF','PTS',"+/-"]
doc = SimplifiedDoc(response.text)
stat_table = doc.getElement('table',attr='id',value='box-MIN-game-advanced')
stat_table = stat_table.tbody
trs = stat_table.trs.notContains('thead',attr='class')
for tr in trs:
tds = tr.children
colValues = [td.text for td in tds]
print (colValues)
# If you need the link address,
href = tds[0].a.href
# If you want the full path,
href = doc.absoluteUrl(url,tds[0].a.href)
Результат:
['Jarrett Culver', '33:08', '.536', '.536', '.429', '.000', '4.9', '20.2', '11.4', '26.5', '0.0', '0.0', '22.2', '20.2', '91', '129']
['Robert Covington', '26:57', '.451', '.450', '.400', '.500', '6.0', '20.7', '12.2', '12.3', '9.5', '7.1', '0.0', '16.9', '103', '103']
['Andrew Wiggins', '24:37', '.373', '.269', '.538', '.308', '3.3', '9.1', '5.7', '6.5', '0.0', '0.0', '11.9', '25.4', '75', '132']
['Shabazz Napier', '20:27', '.190', '.143', '.571', '.286', '0.0', '10.9', '4.6', '20.9', '0.0', '0.0', '33.7', '21.6', '39', '131']
['Gorgui Dieng', '18:41', '1.000', '1.000', '.714', '.000', '4.4', '29.9', '15.1', '33.3', '2.3', '0.0', '22.2', '17.9', '134', '121']
['Josh Okogie', '30:23', '.606', '.545', '.636', '.455', '5.4', '11.0', '7.7', '28.1', '5.6', '3.2', '7.0', '17.4', '128', '116']
['Jeff Teague', '21:38', '.253', '.222', '.333', '.222', '7.5', '0.0', '4.4', '28.1', '0.0', '0.0', '28.8', '23.9', '58', '133']
['Keita Bates-Diop', '19:03', '.646', '.500', '.600', '1.600', '4.3', '5.9', '4.9', '8.1', '0.0', '0.0', '0.0', '16.7', '143', '132']
['Naz Reid', '17:34', '.444', '.393', '.571', '.286', '4.6', '6.4', '5.4', '12.2', '0.0', '5.5', '0.0', '33.4', '97', '129']
['Treveon Graham', '13:47', '.515', '.333', '.333', '.667', '0.0', '8.1', '3.4', '21.4', '3.1', '0.0', '20.5', '13.2', '100', '124']
['Jordan Bell', '7:50', '.543', '1.000', '.000', '4.000', '0.0', '28.5', '12.0', '20.5', '0.0', '0.0', '0.0', '13.1', '110', '127']
['Noah Vonleh', '5:55', '1.000', '1.000', '.000', '.000', '13.8', '56.6', '31.8', '0.0', '0.0', '0.0', '0.0', '6.3', '208', '120']