[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:
@@ -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
|
||||
|
||||
@@ -285,6 +285,7 @@
|
||||
"quoted": false,
|
||||
"replies": true,
|
||||
"retweets": false,
|
||||
"strategy": null,
|
||||
"text-tweets": false,
|
||||
"twitpic": false,
|
||||
"users": "timeline",
|
||||
|
||||
Reference in New Issue
Block a user