Код: Выделить всё
link = 'https://www.basketball-reference.com/teams/NOP/2023.html#advanced'
dfs = pd.read_html(link)
stats = dfs[1].dropna()
d = stats.to_dict('records')
Код: Выделить всё
link = 'https://www.basketball-reference.com/teams/NOP/2023.html#advanced'
page = requests.get(link, proxies = {'http://': temp, 'https://':temp}, timeout = 5).text
dfs = pd.read_csv(StringIO(page),error_bad_lines=False)
Подробнее здесь: https://stackoverflow.com/questions/755 ... etworks-to