Не могу спарсить таблицу с сайта - Can't parsing table from site -
https://raex-rr.com/ESG/ESG_companies/ESG_rating_companies/2023.5/
need to parsing table from website get error: 'NoneType' object has no attribute 'find_all'
code:
url = 'https://raex-rr.com/ESG/ESG_companies/ESG_rating_companies/2023.5/'
page = requests.get(url)
print(page.status_code)
soup = BeautifulSoup(page.text, 'lxml')
soup
table1 = soup.find('table', id='rrp_table_wrapper')
table1
# Obtain every title of columns with tag <th>
headers = []
for i in table1.find_all('th'):
title = i.text
headers.append(title)
Источник: Stack Overflow на русском