fix example, closes #120

This commit is contained in:
Martin Angers
2016-06-29 08:59:28 -04:00
parent 77cbaef46a
commit f0d75731e0
2 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -16,9 +16,9 @@ func Example() {
}
// Find the review items
doc.Find(".reviews-wrap article .review-rhs").Each(func(i int, s *goquery.Selection) {
doc.Find(".sidebar-reviews article .content-block").Each(func(i int, s *goquery.Selection) {
// For each item found, get the band and title
band := s.Find("h3").Text()
band := s.Find("a").Text()
title := s.Find("i").Text()
fmt.Printf("Review %d: %s - %s\n", i, band, title)
})