Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve index / table of contents categorization
- Loading branch information
Showing
12 changed files
with
197 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
.. _v1_models_reference: | ||
|
||
****** | ||
Models | ||
****** | ||
|
||
.. class:: tweepy.models.BoundingBox | ||
|
||
:reference: https://developer.twitter.com/en/docs/twitter-api/v1/data-dictionary/object-model/geo#bounding-box | ||
|
||
.. class:: tweepy.models.DirectMessage | ||
|
||
:reference: https://developer.twitter.com/en/docs/twitter-api/v1/direct-messages/sending-and-receiving/guides/message-create-object | ||
|
||
.. class:: tweepy.models.Friendship | ||
|
||
:reference: https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/get-friendships-show#example-response | ||
|
||
.. class:: tweepy.models.List | ||
|
||
:reference: https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/create-manage-lists/api-reference/get-lists-show#example-response | ||
|
||
.. class:: tweepy.models.Media | ||
|
||
:reference: https://developer.twitter.com/en/docs/twitter-api/v1/data-dictionary/object-model/entities#media | ||
|
||
.. class:: tweepy.models.Place | ||
|
||
:reference: https://developer.twitter.com/en/docs/twitter-api/v1/data-dictionary/object-model/geo#place | ||
|
||
.. class:: tweepy.models.Relationship | ||
|
||
:reference: https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/get-friendships-lookup#example-response | ||
|
||
.. class:: tweepy.models.SavedSearch | ||
|
||
:reference: https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/manage-account-settings/api-reference/get-saved_searches-show-id#example-response | ||
|
||
.. class:: tweepy.models.SearchResults | ||
|
||
:reference: https://developer.twitter.com/en/docs/twitter-api/v1/tweets/search/api-reference/get-search-tweets#example-response | ||
|
||
.. class:: tweepy.models.Status | ||
|
||
:reference: https://developer.twitter.com/en/docs/twitter-api/v1/data-dictionary/object-model/tweet | ||
|
||
.. class:: tweepy.models.User | ||
|
||
:reference: https://developer.twitter.com/en/docs/twitter-api/v1/data-dictionary/object-model/user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
.. _v1_pagination_guide: | ||
|
||
.. currentmodule:: tweepy | ||
|
||
********** | ||
Pagination | ||
********** | ||
|
||
.. autoclass:: Cursor | ||
:members: | ||
|
||
Example | ||
======= | ||
|
||
:: | ||
|
||
import tweepy | ||
|
||
auth = tweepy.OAuth2AppHandler("Consumer Key here", "Consumer Secret here") | ||
api = tweepy.API(auth) | ||
|
||
for status in tweepy.Cursor(api.search_tweets, "Tweepy", | ||
count=100).items(250): | ||
print(status.id) | ||
|
||
for page in tweepy.Cursor(api.get_followers, screen_name="TwitterDev", | ||
count=200).pages(5): | ||
print(len(page)) |
Oops, something went wrong.