I am scrapping the following page: https://www.sbs.gob.pe/app/pp/EstadisticasSAEEPortal/Paginas/TIPasivaDepositoEmpresa.aspx?tip=C
The first problem is that the table that I want has no id, so I use class name. image html
I wanna extract all the info from the selected table. The problem is that when I scrap it using selenium I do find the table but I can't access its body or childs.
Here is my python code:
driver = webdriver.Chrome( ChromeDriverManager().install() )
url = "https://www.sbs.gob.pe/app/pp/EstadisticasSAEEPortal/Paginas/TIPasivaDepositoEmpresa.aspx?tip=C"
wd = webdriver.Chrome( ChromeDriverManager().install() )
wd.maximize_window()
wd.get(url)
table_path = wd.find_elements_by_class_name("APLI_tabla")
innerhtml = table_path.get_attribute('innerHTML')
The code above outputs the following error: AttributeError: 'list' object has no attribute 'get_attribute'
