Skip to content

Commit 999a24e

Browse files
authored
Update documentoutput.rst
update links to the twitter api add rate limits evaluation
1 parent d086fe4 commit 999a24e

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

docs/officialdoc/architecture/documentoutput.rst

+8-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ How to display a Tweet on a website using the Tweet id
3838
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3939

4040
It is possible to display a tweet using Twitter tools:
41-
#. the Javascript API and the id of a tweet: `Javascript API <https://developer.twitter.com/en/docs/twitter-for-websites/javascript-api/overview>`_.
41+
#. the Javascript API and the id of a tweet: `Twitter Javascript API <https://developer.twitter.com/en/docs/twitter-for-websites/overview>`_.
4242
#. the Oembed API and the url of a tweet: `GET statuses/oembed <https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-oembed>`_.
4343

4444
How to access the content of a Tweet or an Author using a list of Ids
@@ -47,5 +47,10 @@ How to access the content of a Tweet or an Author using a list of Ids
4747
It is possible to *access the content of a tweet or an author* by using the Twitter API.
4848
#. First, you need to register and create an app on the `Twitter Developer Website <https://developer.twitter.com/en/docs.html#/>`_.
4949
#. Using your app and credentials, you will be able to access:
50-
* Tweet Content by providing up to 100 tweet ids per calls using: `GET statuses/lookup <https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-users-lookup/>`_. (A user object is included as Author of a Tweet object)
51-
* User Content by providing up to 100 user ids per calls using: `GET users/lookup <https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-users-lookup/>`_.
50+
* Tweet Content by providing up to 100 tweet ids per calls using: `GET statuses/lookup <https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-lookup>`_. (A user object is included as Author of a Tweet object)
51+
* User Content by providing up to 100 user ids per calls using: `GET users/lookup <https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-users-lookup>`_.
52+
#. The number of tweets you can retrieve using this methods will be affected by the rate-limit implemented by twitter in its API.
53+
54+
**How to evaluate the max number of tweets to be retrieved**:
55+
``100 tweets per request * 900 calls per 15min Windows (by using user_auth) = 90 000 tweets per 15min``
56+
``90 000 Tweets per 15 min * 4 (one hour) * 24 (one day) = 8 640 000 tweets per day``

0 commit comments

Comments
 (0)