diff --git a/docs/configuration.rst b/docs/configuration.rst index 1868fa78..e4be9051 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -3230,19 +3230,6 @@ Description will be taken from the original Tweets, not the Retweets. -extractor.twitter.search-endpoint ---------------------------------- -Type - ``string`` -Default - ``"graphql"`` -Description - Selects the API endpoint used to retrieve search results. - - * ``"graphql"``: GraphQL endpoint - * ``"rest"``: Legacy REST endpoint - - extractor.twitter.timeline.strategy ----------------------------------- Type diff --git a/gallery_dl/extractor/twitter.py b/gallery_dl/extractor/twitter.py index 7b9a2e4c..edfec3dc 100644 --- a/gallery_dl/extractor/twitter.py +++ b/gallery_dl/extractor/twitter.py @@ -1085,10 +1085,6 @@ class TwitterAPI(): auth_token = cookies.get("auth_token", domain=cookiedomain) - search = extractor.config("search-endpoint") - if search == "rest": - self.search_timeline = self.search_adaptive - self.headers = { "Accept": "*/*", "authorization": "Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejR" @@ -1324,16 +1320,6 @@ class TwitterAPI(): return self._pagination_tweets( endpoint, variables, ("list", "tweets_timeline", "timeline")) - def search_adaptive(self, query): - endpoint = "/2/search/adaptive.json" - params = self.params.copy() - params["q"] = query - params["tweet_search_mode"] = "live" - params["query_source"] = "typed_query" - params["pc"] = "1" - params["spelling_corrections"] = "1" - return self._pagination_legacy(endpoint, params) - def search_timeline(self, query): endpoint = "/graphql/7jT5GT59P8IFjgxwqnEdQw/SearchTimeline" variables = { diff --git a/gallery_dl/version.py b/gallery_dl/version.py index f2a31116..39cfbd1c 100644 --- a/gallery_dl/version.py +++ b/gallery_dl/version.py @@ -6,4 +6,4 @@ # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. -__version__ = "1.25.8" +__version__ = "1.26.0-dev"