Delete your old tweets and favorites using the Twitter API
Project description
tidytwitter
Delete your old tweets and favorites using the Twitter API.
tidytwitter tweets
will delete all of your tweets except those that:
- are older than 60 days, or
- have more than 20 favorites, or
- you have favorited yourself
tidytwitter favorites
will delete all your favorites except those that:
- are older than 60 days, or
- are of one of your own tweets
See tidytwitter --help
, tidytwitter tweets --help
and tidytwitter favorites --help
for more.
The idea to preserve self-favorited tweets is stolen with thanks from a script by Chris Albon.
Installation
pip install git+https://github.com/williamsmj/tidytwitter.git
Create a Twitter developer account and get the key, secret, access token and access token secret.
You can either export those as environment variables:
export TIDYTWITTER_API_KEY="your_api_key"
export TIDYTWITTER_API_SECRET="your_api_secret"
export TIDYTWITTER_ACCESS_TOKEN="your_access_token"
export TIDYTWITTER_ACCESS_TOKEN_SECRET="your_access_token_secret"
or pass them as command line options (--api-key
, etc., see --help
).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tidytwitter-0.0.3.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for tidytwitter-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8163a9ef633f39297144cb4b1c18da0864961d53a590677dcee825639a4b625b |
|
MD5 | 2a3d50ae732f86d22614655bfbbc687f |
|
BLAKE2b-256 | e466b70081d8b375ea7d9db943245bb0c390bb2a00105f17cb8d5b8e57625c7a |