[twitter] implement 'syndication=extended'

to be able to fetch extended user metadata
This commit is contained in:
ClosedPort22
2022-12-30 20:39:36 +08:00
parent 2d7d80d302
commit 7c8eab8d52
2 changed files with 14 additions and 4 deletions

View File

@@ -2655,11 +2655,18 @@ Description
extractor.twitter.syndication
-----------------------------
Type
``bool``
``bool`` or ``string``
Default
``false``
Description
Retrieve age-restricted content using Twitter's syndication API.
Controls how to retrieve age-restricted content when not logged in.
* ``false``: Skip age-restricted Tweets.
* ``true``: Download using Twitter's syndication API.
* ``"extended"``: Try to fetch Tweet metadata using the normal API
in addition to the syndication API. This requires additional HTTP
requests in some cases (e.g. when `retweets <extractor.twitter.retweets_>`_
is enabled).
extractor.twitter.logout