This repository has been archived by the owner on Feb 23, 2023. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^3.10.0
->^4.0.0
Release Notes
tweepy/tweepy
v4.12.1
: 4.12.1Compare Source
Bug Fixes
AsyncBaseStream
to abort closed SSL transports (#1904)edit_history_tweet_ids
field (3dea0df, #1994)network_error_wait
to 0 for streaming (b18c1a6)Misc
limit
andpagination_token
parameters forPaginator
andAsyncPaginator
(e98ab02, bb934fc)Response
inClient
andAsyncClient
(#1997, 9983735)namedtuple
in documentation forResponse
(352c74a)v4.12.0
: 4.12.0Compare Source
New Features / Improvements
DirectMessageEvent
modelClient.get_direct_message_events
,Client.create_direct_message
, andClient.create_direct_message_conversation
AsyncClient.get_direct_message_events
,AsyncClient.create_direct_message
, andAsyncClient.create_direct_message_conversation
variants
Media
field (#1910, e31be15)Bug Fixes
ReferencedTweet
(d4df069)Misc
edit_history_tweet_ids
andedit_controls
Tweet
fields (2b1e159)AsyncClient
methods (f737b87)Client.get_quote_tweets
in documentation (6f7de39)v4.11.0
: 4.11.0Compare Source
New Features / Improvements
include_ext_edit_control
parameter forAPI
methods (e122f35, e736770)edit_history_tweet_ids
andedit_controls
Tweet
fields (#1979, a1c104f)asynchronous.AsyncPaginator
for pagination forAsyncClient
(33e444a)exclude
parameter forget_quote_tweets
(4f28bd8, 17e02b7, 48ebdb7)Bug Fixes
AsyncStream
(29bbb7b, a4c6325, 5ade386)endpoint_parameters
argument inAPI.indicate_direct_message_typing
(396ab84)models.List
methods to pass keyword arguments toAPI
methods (#1987)models.List
methods to use list ID instead of slug (73f6308)Misc
AsyncBaseStream
(51c3762)get_list_tweets
in documentation (86577b1)media_fields
,place_fields
, andpoll_fields
parametersget_list_tweets
(5cb2616)wait_on_rate_limit
parameter for streaming (#1986)v4.10.1
: 4.10.1Compare Source
Bug Fixes
AsyncBaseClient
rate limit handling (#1902)StreamRule
when passed in list toStreamingClient.delete_rules
orAsyncStreamingClient.delete_rules
(#1942)media_fields
,place_fields
, andpoll_fields
parameters forClient.get_list_tweets
andAsyncClient.get_list_tweets
(#1931)AsyncClient
method parameters explicitly passed asNone
(#1944)Misc
BaseStream
(598ea64)StreamingClient
andAsyncStreamingClient
add_rules
anddelete_rules
methods (#1937)v4.10.0
: 4.10.0Compare Source
New Features / Improvements
asynchronous.AsyncClient
(0aadd53)async_lru
as requirement forasync
extraasynchronous.AsyncStreamingClient
(9051ba6)Client.get_home_timeline
andAsyncClient.get_home_timeline
AsyncStream.user_agent
even ifAsyncStream.session
is already initialized/set (096a62c)Twitter API Deprecations
AsyncStream.sample
and note deprecation of compliance messages forAsyncStream.filter
(e043074, 1b77007)Misc
v4.9.0
: 4.9.0Compare Source
New Features / Improvements
API.indicate_direct_message_typing
andAPI.mark_direct_message_read
"detail"
response value forHTTPException
message (b6b8241)"error"
key of response being a string inHTTPException
(2da4452)Twitter API Deprecations
Stream.sample
and note deprecation of compliance messages forStream.filter
(#1876)Misc
tests_require
from setup.py (2870031)v4.8.0
: 4.8.0Compare Source
New Features / Improvements
Client.remove_bookmark
,Client.get_bookmarks
,Client.bookmark
Client
methods that require the authenticating user's ID (0157d0b)TypeError
for those methods when the access token isn't setNotFound
rather thanHTTPException
when encountering 404 response status codes inBaseClient.request
(b6b8219)v4.7.0
: 4.7.0Compare Source
New Features / Improvements
Client.get_quote_tweets
Python Backwards-Incompatible Changes
Bug Fixes
Client.follow
to return response fromClient.follow_user
rather thanNone
(0742f54)Client.unfollow
to return response fromClient.unfollow_user
rather thanNone
(c1787f0)Misc
List
(360594b)Media
(c2dacc8)Place
(e3fa223)Poll
(61ed5d7)Space
(1a7ea1f)Tweet
(b9cef72)ReferencedTweet
(9a995b5)User
(aa3658e)Tweet.referenced_tweets
initialization (3299881)v4.6.0
: 4.6.0Compare Source
This will be the last minor version to support Python 3.6 (#1788).
New Features / Improvements
Client
andStream
to inherit from newBaseClient
andBaseStream
classes and addStreamingClient
,StreamResponse
, andStreamRule
max_results
andpagination_token
parameters forClient.get_liking_users
(bdd6b55)max_results
andpagination_token
parameters forClient.get_retweeters
(3479e56)sort_order
parameter forClient.search_all_tweets
(bd202e5)sort_order
parameter forClient.search_recent_tweets
(8b47170)Client.get_space_tweets
(c8d5d9a)Space.subscriber_count
(1ffc8cd)repr
of text inTweet.__repr__
(4e2997e)Mapping.__contains__
inDataMapping
(9f10a58)Stream.session
withinStream.__init__
(80adf5b)Stream.user_agent
even ifStream.session
is already initializedBug Fixes
Client._make_request
(#1793)Misc
debug
function (a702325)v4.5.0
: 4.5.0Compare Source
New Features / Improvements
OAuth2UserHandler
(2b83507, 16763e2)user_auth
parameters toClient
methods (8f38429, e88b074, 0d6b68a)OAuthHandler
toOAuth1UserHandler
(fb6eb7d)OAuthHandler
is kept as a deprecated alias (cba7317)AppAuthHandler
toOauth2AppHandler
(529d793)AppAuthHandler
is kept as a deprecated alias (d4ceb1a)OAuth2Bearer
toOAuth2BearerHandler
(0781fde)OAuth1UserHandler.__init__
(99f3583)callback
parameter to be the fifth argument, positionallyOAuth2BearerHandler
to be used asauth
parameter forAPI
(5a2a3fc)AuthHandler
(d600c4c)OAuth1UserHandler.get_xauth_access_token
(8e2de9f)Client.get_me
(c49cbdf, 62b5b58, f6895d3, bb87b26)Media.url
(#1722)JSONDecodeError
(b492b0a)Bug Fixes
Response.includes["polls"]
not beingPoll
objects (#1733)Paginator
handling ofClient.get_all_tweets_count
(#1761)Misc
Model.__getstate__
(#1707)v4.4.0
: 4.4.0Compare Source
New Features / Improvements
Client.get_space_buyers
(8bf58ca)Space.ended_at
andSpace.topic_ids
(c89a233)Bug Fixes
Space.__str__
(ebb4bfd)v4.3.0
: 4.3.0Compare Source
New Features / Improvements
Misc
HTTPException
attributes (c62c31a)Client
methods to Twitter API v2 endpoints (0572b03)v4.2.0
: 4.2.0Compare Source
New Features / Improvements
Client.follow
andClient.unfollow
toClient.follow_user
andClient.unfollow_user
, respectively (8f8de15)Client.follow
andClient.unfollow
are kept as deprecated aliasesTwitter API Changes
state
to optional parameter forClient.search_spaces
(e61d5d6)Bug Fixes
API
instance attribute when usingCursor
with pagination by ID (451e921)v4.1.0
: 4.1.0Compare Source
New Features / Improvements
Space
modelClient.search_spaces
,Client.get_spaces
, andClient.get_space
Client.get_compliance_jobs
,Client.get_compliance_job
, andClient.create_compliance_job
Client.get_muted
(00cdab8)v4.0.1
: 4.0.1Compare Source
Bug Fixes
Client
methods (d61a5d9)Client
methods in Twitter API request (618d1c2)Client
methods from datetimes to strings (1320a37)start_time
andend_time
that accept datetimesJSONDecodeError
inHTTPException
(586c162)Misc
v4.0.0
: 4.0.0Compare Source
Major New Features / Improvements
Support Twitter API v2 (#1472, #1535)
Rework media uploading (#640, #1486, #1501)
Support asynchronous streaming (#732, #1491)
Rework
API
bind_api
andAPIMethod
withAPI.request
API
methodspagination
decoratorrequests.Session
instance asAPI.session
attribute (2f28757)requests.Session
instance perAPI
instance, rather than for each requestallowed_param
) to endpoint parameters (endpoint_parameters
) (b4fc6a0)API.request
and otherAPI
methodsRework streaming
StreamListener
has been merged intoStream
(see Backwards-Incompatible Changes section)Stream
data/event handling methods (i.e. those starting withon_
) now log by default and disregard return valuesStream
Rework documentation
Stream
(18a6059)API
documentation (6db8e4c)Rework exceptions
TweepError
withTweepyException
(5c39cd1) andHTTPException
(#599)RateLimitError
withTooManyRequests
(cd5f696)Parser.parse_error
(cd5f696)NotFound
(2d84b27)Unauthorized
(3ffec76)Forbidden
(4a9bc58)BadRequest
(3da5ede)TwitterServerError
(b443557)Backwards-Incompatible Changes
API
API
andmodels
methodsAPI.blocks
->API.get_blocks
(9541794)API.blocks_ids
->API.get_blocked_ids
(e241ca4)API.destroy_direct_message
->API.delete_direct_message
(2731fc9)DirectMessage.destroy
->DirectMessage.delete
(2731fc9)API.favorites
->API.get_favorites
(3c467da)API.followers
->API.get_followers
(ce768d9)API.followers_ids
->API.get_follower_ids
(fa5e7c4)models.User.followers_ids
->models.User.follower_ids
(fa5e7c4)API.friends
->API.get_friends
(6f3fccb)API.friends_ids
->API.get_friend_ids
(bab3e5e)API.friendships_incoming
->API.incoming_friendships
(007bd07)API.friendships_outgoing
->API.outgoing_friendships
(1400065)API.geo_search
->API.search_geo
(6f4fb39)API.list_direct_messages
->API.get_direct_messages
(ff1186f)API.list_members
->API.get_list_members
(5845f02)API.list_subscribers
->API.get_list_subscribers
(a05b630)API.lists_all
->API.get_lists
(458e0e8)API.lists_memberships
->API.get_list_memberships
(9dddc12)models.User.lists_memberships
->models.User.list_memberships
(9dddc12)API.lists_subscriptions
->API.get_list_subscriptions
(51945a7)models.User.lists_subscriptions
->models.User.list_subscriptions
(51945a7)API.mutes
->API.get_mutes
(744edc2)API.mutes_ids
->API.get_muted_ids
(ea26a29)API.retweeters
->API.get_retweeter_ids
(588c342)API.retweets
->API.get_retweets
(3b3ba24)API.retweets_of_me
->API.get_retweets_of_me
(737bd0b)API.saved_searches
->API.get_saved_searches
(8b39f74)API.search
->API.search_tweets
(7fac253)API.show_friendship
->API.get_friendship
(ee9ea2e)API.show_list_member
->API.get_list_member
(431ab15)API.show_list_subscriber
->API.get_list_subscriber
(bf26301)API.statuses_lookup
->API.lookup_statuses
(#477)API.trends_available
->API.available_trends
(68b33d7)API.trends_closest
->API.closest_trends
(2e18162)API.trends_place
->API.get_place_trends
(4912a7c)API.update_with_media
->API.update_status_with_media
(0a5e533)API
method parametersAPI.geo_id
:id
->place_id
(78051e8)API.lookup_friendships
:screen_names
->screen_name
(4573b35),user_ids
->user_id
(3bcccf8)API.lookup_statuses
:id_
->id
(f13a34b)API.lookup_users
:screen_names
->screen_name
(17a2e7c),user_ids
->user_id
(e7d9e55)API.search_30_day
:environment_name
->label
(6c66c60)API.search_full_archive
:environment_name
->label
(295bfe4)API.update_profile_image
:file_
->file
(69f6c1d)API
method parametersAPI.closest_trends
:lat
,long
(75b9616)API.create_favorite
:id
(d3d2abe)API.create_list
:name
(5e7385a)API.create_saved_search
:query
(c57a4be)API.delete_direct_message
:id
(bcb56ab)API.destroy_favorite
:id
(a9d41b6)API.get_direct_message
:id
(f5775ee)API.get_oembed
:url
(af0cc51)API.get_place_trends
:id
(c50f540)API.get_retweeter_ids
:id
(66f6704)API.get_status
:id
(bac73c3)API.reverse_geocode
:lat
,long
(87d8646)API.search_30_day
:query
(52874b7)API.search_full_archive
:query
(801f15d)API.search_tweets
:q
(9377e7e)API.search_users
:q
(21802f9)API.update_status
:status
(f64c076)API.update_status_with_media
:status
(0726263)API
methods (change to be keyword-only arguments):API.add_list_member
(ae18ee5)API.add_list_members
(8eb900f)API.available_trends
(7a74863)API.closest_trends
, besideslat
andlong
(7946490)API.create_block
(caa34c6)API.create_favorite
, besidesid
(0b83984)API.create_friendship
(82cd798)API.create_list
, besidesname
(25cb01e)API.create_mute
(4aae710)API.create_saved_search
, besidesquery
(76be2d9)API.delete_direct_message
, besidesid
(53ca00f)API.destroy_block
(c49cfb2)API.destroy_favorite
, besidesid
(8afee87)API.destroy_friendship
(b2d44fe)API.destroy_list
(4b2cfc4)API.destroy_mute
(009b54e)API.destroy_saved_search
, besidesid
(b7afca2)API.destroy_status
, besidesid
(876c8ca)API.geo_id
, besidesplace_id
(a0cff22)API.get_blocked_ids
(ff38b70)API.get_blocks
(dc81854)API.get_direct_message
, besidesid
(4ae0ec8)API.get_direct_messages
(8e0507d)API.get_favorites
(e80b49a)API.get_follower_ids
(7d42597)API.get_followers
(c6ab5a0)API.get_friend_ids
(c65641b)API.get_friends
(e6965fa)API.get_friendship
(6dea7de)API.get_list
(92dc37f)API.get_list_member
(0af06db)API.get_list_members
(7c8be8d)API.get_list_memberships
(ec7601f)API.get_list_subscriber
(a175cdd)API.get_list_subscribers
(3ee84ef)API.get_list_subscriptions
(178d719)API.get_lists
(3cd0058)API.get_muted_ids
(2967104)API.get_mutes
(9e9d370)API.get_oembed
, besidesurl
(d13d853)API.get_place_trends
, besidesid
(548810c)API.get_retweeter_ids
, besidesid
(9907c25)API.get_retweets
, besidesid
(0bd0292)API.get_retweets_of_me
(2b2ed0a)API.get_saved_search
, besidesid
(1d3d3ae)API.get_saved_searches
(c5f5b4b)API.get_settings
(2c2f0ec)API.get_status
, besidesid
(30af3ac)API.get_user
(6b761ce)API.home_timeline
(b91be22)API.incoming_friendships
(6d3b7f2)API.list_timeline
(e3ec5c1)API.lookup_friendships
(0eff951)API.lookup_statuses
, besidesid
(cf9845d)API.lookup_users
(7317109)API.media_upload
, besidesfilename
(ec2498f)API.mentions_timeline
(3614ce4)API.outgoing_friendships
(09f8504)API.rate_limit_status
(b4b91c1)API.remove_list_member
(e7fa800)API.remove_list_members
(593ef1c)API.report_spam
(f55efcf)API.retweet
, besidesid
(4f7be88)API.reverse_geocode
: besideslat
andlong
(b209c48)API.search_30_day
, besideslabel
andquery
(434fd35)API.search_full_archive
, besideslabel
andquery
(44391bc)API.search_geo
(0a6bec9)API.search_tweets
, besidesq
(445da4e)API.search_users
, besidesq
(76ca416)API.send_direct_message
, besidesrecipient_id
andtext
(7d1a549)API.set_settings
(bf1d928)API.supported_languages
(2034efc)API.subscribe_list
(ee3b718)API.unretweet
, besidesid
(4626c42)API.unsubscribe_list
(2df2311)API.update_list
(8b3b4fb)API.update_profile
(99cd815)API.update_profile_banner
, besidesfilename
(1ca22be)API.update_profile_image
, besidesfilename
(3539fa2)API.update_status
, besidesstatus
(761cbfe)API.update_status_with_media
, besidesfilename
andstatus
(0ac4e83)API.user_timeline
(0ef964f)API.update_status_with_media
parameters (87abdcd)API
initialization parameter:auth_handler
->auth
(ee313bd)auth
forAPI
initialization (da2f276)API.api_root
andAPI.upload_root
(e757919)API.compression
(4590c7a)API.me
,AuthHandler.get_username
, andOAuthHandler.get_username
(807f937)API.search_host
andAPI.search_root
(92db0cf)API.wait_on_rate_limit_notify
(f325738)map_
keyword argument aliasing forAPI.lookup_statuses
(0a404c3)Stream
StreamListener
by merging it intoStream
(39abff4)StreamListener.keep_alive
->Stream.on_keep_alive
(abf4d5d)StreamListener.on_connect
->Stream.on_connect
StreamListener.on_data
->Stream.on_data
StreamListener.on_delete
->Stream.on_delete
StreamListener.on_disconnect
->Stream.on_disconnect_message
(6c3b997)StreamListener.on_error
->Stream.on_request_error
(fe3bb8b)StreamListener.on_exception
->Stream.on_exception
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.