Skip to content

Commit

Permalink
fix in weather example
Browse files Browse the repository at this point in the history
  • Loading branch information
anaskhan96 committed Sep 22, 2020
1 parent 0abf2cd commit ef9333a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/weather/weather.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit ef9333a

Please sign in to comment.