Twikit

Latest version: v1.6.2

Safety actively analyzes 626071 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

1.4.4

Added `TooManyRequests.rate_limit_reset`.

python
try:
client.get_user_tweets('44196397', 'Tweets')
except TooManyRequests as e:
print(f'rate limit is reset after {e.rate_limit_reset - time.time()} seconds.')

rate limit is reset after 250.506977558136 seconds.


version1.4.3

1.4.3

Added `Client.set_delegate_account` method, enabling manipulation of delegated accounts.
Example:
python
client.set_delegate_account('00000000000')
client.create_tweet('Hello, World') Tweet as user 00000000000

client.set_delegate_account(None) Revert back to the original user


version1.4.1
Added `Result.previous`

version1.3.16


version1.3.14


version1.3.13

1.3.13

- Added `Tweet.related_tweet`

- Added `Poll` class and `Tweet.poll`
Example:
python
>>> tweet_id = '0000000000000'
>>> tweet = client.get_tweet_by_id(tweet_id)
>>> print(tweet.poll)
<Poll id="card://000000000000000000">

>>> poll.vote('3') Vote for the third choice.


version1.3.10


version1.3.9


version1.3.4


Version1.3.0
Version 1.3.0 has been released.
Major Changes
Major changes have been made to `Client.upload_media`. The changes are as follows:

1. Changes to the arguments
`index` argument has been removed, and `wait_for_completion` and `status_check_interval` have been added.
2. Chunk uploads are now supported
This allows for uploading larger files.

This change will cause an error with the previous code, so please make the change.
For more details and usage examples, please refer to the [documentation](https://twikit.readthedocs.io/en/latest/twikit.html#twikit.client.Client.upload_media).

version1.2.7
Two-factor authentication is now supported.

version1.2
Added full_text parameter to Tweet. When text is omitted, the full text is assigned to it.
Added retweeted_tweet parameter to Tweet class.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.