I am new to web scraping and I need some help for my query. On this page https://ski-resort-stats.com/Hemsedal/, section SNOW HISTORY FOR HEMSEDAL I am trying to retrieving the infos on the graph (snow fall for each year). I am trying to start with one year (2013-2014).
I think I found the part associated in the html code: Screenshot from the html code
For that:
from bs4 import BeautifulSoup
import requests
url="https://ski-resort-stats.com/Hemsedal/"
html_content = requests.get(url).text
soup = BeautifulSoup(html_content, "lxml")
gdp_table = soup.find("g", attrs={"class": "highcharts-markers highcharts-series-0 highcharts-spline-series highcharts-color-0 highcharts-tracker"})
gdp_table_data = gdp_table.tbody.find_all("path")`
But I am guetting this error: "AttributeError: 'NoneType' object has no attribute 'tbody'". Tried with other elements from the html codes but without success. Can someone help me with that ?