From ed0186bad8995b24102ab7f4dcf58a9f00bfa896 Mon Sep 17 00:00:00 2001 From: Alexander Sheiko Date: Tue, 11 Jan 2022 13:29:48 +0200 Subject: [PATCH] Extend query string --- util.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/util.go b/util.go index aec0b67..f107f33 100644 --- a/util.go +++ b/util.go @@ -29,6 +29,7 @@ func (s *Scraper) newRequest(method string, url string) (*http.Request, error) { q.Add("include_mute_edge", "1") q.Add("include_can_dm", "1") q.Add("include_can_media_tag", "1") + q.Add("include_ext_has_nft_avatar", "1") q.Add("skip_status", "1") q.Add("cards_platform", "Web-12") q.Add("include_cards", "1") @@ -40,10 +41,11 @@ func (s *Scraper) newRequest(method string, url string) (*http.Request, error) { q.Add("include_user_entities", "true") q.Add("include_ext_media_color", "true") q.Add("include_ext_media_availability", "true") + q.Add("include_ext_sensitive_media_warning", "true") q.Add("send_error_codes", "true") q.Add("simple_quoted_tweet", "true") q.Add("include_tweet_replies", strconv.FormatBool(s.includeReplies)) - q.Add("ext", "mediaStats,highlightedLabel") + q.Add("ext", "mediaStats,highlightedLabel,hasNftAvatar,voiceInfo,superFollowMetadata") req.URL.RawQuery = q.Encode() return req, nil