I'm trying to extract information from this page: https://webgate.ec.europa.eu/rasff-window/screen/list?consumer=-1
More specifically the text in the first row under 'Subject'. See here: //*[@id="main-content"]/app-list-component/div/div[2]/div[2]/div/app-nt-list-item[1]/div/div[4]/p
Does anybody have an idea how to do so? I've tried numerous ways but results always comes empty. It looks like a dynamic list...
Below is the last thing I've tested.
from selenium import webdriver
from selenium.webdriver.common.by import By
driver = webdriver.Chrome(executable_path='//chromedriver.exe')
driver.get("https://webgate.ec.europa.eu/rasff-window/screen/list?consumer=-1")
subject = driver.find_element("xpath", '//*[@id="main-content"]/app-list-component/div/div[2]/div[2]/div/app-nt-list-item[1]/div/div[4]/p')
print(subject)
driver.quit()
Thank you very much in advance! As you can see, I'm not very skilled at this :(