from selenium import webdriver
import pandas as pd
from selenium.webdriver.firefox.options import Options
options = Options()
options.add_argument('--headless')
driver = webdriver.Firefox(options=options)
driver.get(
"https://interaktiv.morgenpost.de/corona-virus-karte-infektionen-deutschland-weltweit/")
btn = driver.find_element_by_css_selector(
"button.btn.fnktable__expand").click()
df = pd.read_html(driver.page_source)[0]
df.to_csv("data.csv", index=False)
driver.quit()