You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to scrape some weather data from weather underground. According to the documentation .class selectors should work right? Why I am still getting an empty HTMLNode array with the following code:
using Cascadia
using Gumbo
using HTTP
function getWindChill(speed::Int64)
url = "https://www.wunderground.com/weather/us/ma/boston";
#get and parse html
res = HTTP.get(url);
html = parsehtml(String(res.body));
#select the html element from DOM using cascadia and eachmatch
s = Selector(".wu-value wu-value-to")
temp = eachmatch(s, html.root)
temp
#calculation for wind chill based on temperature and speed
end
getWindChill(10)
The text was updated successfully, but these errors were encountered:
I am trying to scrape some weather data from weather underground. According to the documentation .class selectors should work right? Why I am still getting an empty HTMLNode array with the following code:
The text was updated successfully, but these errors were encountered: