From 79483b3995b48d14d7d5869a6d672f865bbe0880 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Mon, 17 Aug 2015 16:29:36 +0900 Subject: [PATCH] Fixing selector --- tripadvisor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tripadvisor.go b/tripadvisor.go index e799519..eaf60cb 100644 --- a/tripadvisor.go +++ b/tripadvisor.go @@ -43,7 +43,7 @@ func (tripadvisor) index(doc *goquery.Document) (string, []string) { }) var nextIndexUrl string - if href, ok := doc.Find("#EATERY_LIST_CONTENTS > div.deckTools.btm > div > a").Attr("href"); ok { + if href, ok := doc.Find("div.deckTools.btm a.nav.next.rndBtn.rndBtnGreen.taLnk").Attr("href"); ok { nextIndexUrl = href }