From ef9333abbd58649bc7e30410001e2bc2458be3e1 Mon Sep 17 00:00:00 2001 From: Anas Khan Date: Wed, 23 Sep 2020 01:41:01 +0530 Subject: [PATCH] fix in weather example --- examples/weather/weather.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/weather/weather.go b/examples/weather/weather.go index 9f9423a..558cacd 100644 --- a/examples/weather/weather.go +++ b/examples/weather/weather.go @@ -21,7 +21,7 @@ func main() { log.Fatal(err) } doc := soup.HTMLParse(resp) - grid := doc.Find("div", "class", "b_antiTopBleed b_antiSideBleed b_antiBottomBleed") + grid := doc.FindStrict("div", "class", "b_antiTopBleed b_antiSideBleed b_antiBottomBleed") heading := grid.Find("div", "class", "wtr_titleCtrn").Find("div").Text() conditions := grid.Find("div", "class", "wtr_condition") primaryCondition := conditions.Find("div")