[twitter] implement 'strategy' option (#2712)

to be able to better control what Tweets get used an returned
for twitter.com/USER URLs.
This commit is contained in:
Mike Fährmann
2022-07-03 14:29:15 +02:00
parent 5806a1851e
commit 4b2a0a0eda
3 changed files with 31 additions and 4 deletions

View File

@@ -2375,6 +2375,22 @@ Description
will be taken from the original Tweets, not the Retweets.
extractor.twitter.timeline.strategy
-----------------------------------
Type
``string``
Default
``"auto"``
Description
Controls the strategy / tweet source used for user URLs
(``https://twitter.com/USER``).
* ``"tweets"``: `/tweets <https://twitter.com/USER/tweets>`__ timeline + search
* ``"media"``: `/media <https://twitter.com/USER/media>`__ timeline + search
* ``"with_replies"``: `/with_replies <https://twitter.com/USER/with_replies>`__ timeline + search
* ``"auto"``: ``"tweets"`` or ``"media"``, depending on `retweets <extractor.twitter.retweets_>`__ and `text-tweets <extractor.twitter.text-tweets_>`__ settings
extractor.twitter.text-tweets
-----------------------------
Type

View File

@@ -285,6 +285,7 @@
"quoted": false,
"replies": true,
"retweets": false,
"strategy": null,
"text-tweets": false,
"twitpic": false,
"users": "timeline",