pandas.read_html returns wrong table contents

I try to scrape two tables (assets and liabilities) from :

The first table looks like this: enter image description here

Following is my code:

tables = pd.read_html("")

enter image description here

As you can see, the scraped table is completely wrong.

How could I scrape the table correctly?

Thank you in advance for any help:-)


let’s look at selenium for this one, you might be able to do it with bs4 and some fun request stuff

from selenium import webdriver
import time

url = ""
driver = webdriver.Firefox()
tables = driver.find_elements_by_class_name("table")

tables[3].text.splitlines() # this looks to split the new line characters

after that I think you could assign key value pairs and make a dataframe that way, or use numpy