[twitter] use GraphQL search endpoint (#3942)

for guest users; selectable with 'search-endpoint' option.

adapted from 9c7b888ffa
This commit is contained in:
Mike Fährmann
2023-06-01 21:23:31 +02:00
parent 864a654b25
commit 54cf1fa3e7
2 changed files with 48 additions and 7 deletions

View File

@@ -3155,6 +3155,20 @@ Description
will be taken from the original Tweets, not the Retweets.
extractor.twitter.search-endpoint
---------------------------------
Type
``string``
Default
``"auto"``
Description
Selects the API endpoint used to retrieve search results.
* ``"rest"``: Legacy REST endpoint - returns a ``403 Forbidden`` error when not logged in
* ``"graphql"``: New GraphQL endpoint
* ``"auto"``: ``"rest"`` when logged in, ``"graphql"`` otherwise
extractor.twitter.timeline.strategy
-----------------------------------
Type