I want to webscrape the data of a graph that can be found on this webpage. For this purpose, I am using Selenium in Python (Pycharm) . So far this is my code:
from selenium import webdriver
mozilla_path = r"C:\Users\ivrav\Python38\geckodriver.exe"
driver = webdriver.Firefox()
driver.get("https://scholar.google.com/citations?user=8Cuk5vYAAAAJ&hl=en")
driver.maximize_window()
Researcher=driver.find_element_by_xpath("""//*[@id="gsc_rsb_cit"]/div/div[3]/div""") .click()
Graph=driver.find_elements_by_id("gsc_md_hist_b")
print(Graph.text)
The code works fine until it has to take the information (years and citations per year) from the graph, the reply is that there is no text to scrape. Could you give me some ideas of how can I scrape the information I need?
Many thanks in advance, Iván