v4.6.0
版本发布时间: 2022-02-25 05:01:31
tweepy/tweepy最新发布版本:v4.15.0(2025-01-16 05:15:17)
This will be the last minor version to support Python 3.6 (#1788).
New Features / Improvements
- Add support for streaming with Twitter API v2 (86244c1)
- Refactor
Client
andStream
to inherit from newBaseClient
andBaseStream
classes and addStreamingClient
,StreamResponse
, andStreamRule
- Refactor
- Add support for new
max_results
andpagination_token
parameters forClient.get_liking_users
(bdd6b55) - Add support for new
max_results
andpagination_token
parameters forClient.get_retweeters
(3479e56) - Add support for new
sort_order
parameter forClient.search_all_tweets
(bd202e5) - Add support for new
sort_order
parameter forClient.search_recent_tweets
(8b47170) - Add
Client.get_space_tweets
(c8d5d9a) - Add
Space.subscriber_count
(1ffc8cd) - Use
repr
of text inTweet.__repr__
(4e2997e)- This avoids including inconstant newlines, rather than escaped newlines, in the string representation of the Tweet object, making it more consistent
- Override
Mapping.__contains__
inDataMapping
(9f10a58)- This allows membership tests to check for existence within data in Twitter API v2 models, rather than existence of the attribute at all
- Initialize
Stream.session
withinStream.__init__
(80adf5b)- Update the user agent based on
Stream.user_agent
even ifStream.session
is already initialized
- Update the user agent based on
- Use oauthlib to create code challenge and verifier for PKCE (eb22416)
Bug Fixes
- Fix datetime endpoint parameter formatting in
Client._make_request
(#1793)