From 6bf6dc4b69c034ba8fdab14da7ebe053000cffda Mon Sep 17 00:00:00 2001 From: Alexander Sheiko Date: Mon, 2 May 2022 12:30:05 +0300 Subject: [PATCH] Fix search query escape Close #57 Close #58 --- search.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/search.go b/search.go index 81886e4..ec74942 100644 --- a/search.go +++ b/search.go @@ -2,7 +2,6 @@ package twitterscraper import ( "context" - "net/url" "strconv" ) @@ -28,7 +27,6 @@ func SearchProfiles(ctx context.Context, query string, maxProfilesNbr int) <-cha // getSearchTimeline gets results for a given search query, via the Twitter frontend API func (s *Scraper) getSearchTimeline(query string, maxNbr int, cursor string) (*timeline, error) { - query = url.PathEscape(query) if maxNbr > 50 { maxNbr = 50 }