From a1511c386907faddcb18e5b1618a71acdd8293e4 Mon Sep 17 00:00:00 2001 From: Joaco Esteban Date: Sat, 3 Feb 2024 15:34:03 +0100 Subject: [PATCH] Remove maxFollowingNbr parameter from FetchFollowingByUserID function --- follow.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/follow.go b/follow.go index 4a355cf..329b636 100644 --- a/follow.go +++ b/follow.go @@ -5,10 +5,7 @@ import ( ) // FetchFollowingByUserID gets following profiles list for a given userID, via the Twitter frontend GraphQL API. -func (s *Scraper) FetchFollowingByUserID(userID string, maxFollowingNbr int, cursor string) ([]*Profile, string, error) { - if maxFollowingNbr > 200 { - maxFollowingNbr = 200 - } +func (s *Scraper) FetchFollowingByUserID(userID string, cursor string) ([]*Profile, string, error) { req, err := s.newRequest("GET", "https://twitter.com/i/api/graphql/oUxds-Fprv5NKsH67zPt5w/Following") if err != nil { @@ -17,7 +14,6 @@ func (s *Scraper) FetchFollowingByUserID(userID string, maxFollowingNbr int, cur variables := map[string]interface{}{ "userId": userID, - "count": maxFollowingNbr, "includePromotedContent": false, } features := map[string]interface{}{