From e64c140c2018d6cf5865fffbcf9fbdf1ff54e01b Mon Sep 17 00:00:00 2001 From: tolantop Date: Wed, 4 Mar 2020 22:10:11 +0300 Subject: [PATCH] selector change --- tweets.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweets.go b/tweets.go index 222438b..8ac23b3 100644 --- a/tweets.go +++ b/tweets.go @@ -113,7 +113,7 @@ func FetchTweets(user string, last string) ([]*Tweet, error) { s.Find(".js-retweet-text, .QuoteTweet").Each(func(i int, c *goquery.Selection) { tweet.IsRetweet = true }) - s.Find(`span[class="js-pinned-text"]`).Each(func(i int, c *goquery.Selection) { + s.Find("span.js-pinned-text").Each(func(i int, c *goquery.Selection) { tweet.IsPin = true }) s.Find(".ProfileTweet-actionCount").Each(func(i int, c *goquery.Selection) {