n0madic / twitter-scraper

Scrape the Twitter frontend API without authentication with Golang.
MIT License
886 stars 180 forks source link

Is scraper.WithReplies(true) not working correctly? #153

Open ramiorg opened 10 months ago

ramiorg commented 10 months ago

I am using the code below to scrape in the latest order. However, tweets with replies and replies themselves are not included. The internal processing of "scraper.WithReplies(true)" uses "q.Add("include_tweet_replies", strconv.FormatBool(s.includeReplies))", but is this argument no longer usable?

        usr := "twitterID"
        nbr := 5

        scraper = twitterscraper.New()
        scraper.WithReplies(true)
        scraper.Login("Username", "Password")

        for tweet := range scraper.GetTweets(context.Background(), usr, nbrs) {
                if tweet.Error != nil {
                        panic(tweet.Error)
                }
                fmt.Println(tweet)
        }