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 62 days, or
- have more than 20 favorites, or
- you have favorited yourself
tidytwitter favorites
delete all your favorites except those that:
- are older than 62 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 TWITTER_API_KEY="your_api_key"
export TWITTER_API_SECRET="your_api_secret"
export TWITTER_ACCESS_TOKEN="your_access_token"
export TWITTER_ACCESS_TOKEN_SECRET="your_access_token_secret"
Or you can put them in a file auth.json
in the current directory:
{
"api_key": "your_api_key",
"api_secret_key": "your_api_secret",
"access_token": "your_access_token",
"access_token_secret": "your_access_token_secret"
}
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.2.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for tidytwitter-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24f807760a67e410a2d2ca9aaba5bc24290016c5ef7168f2d2f805118261c88d |
|
MD5 | 2a895e4fe12ea4d8a388827425103cb6 |
|
BLAKE2b-256 | 0a7d771bffc4b24f9299f5346f62bc34415a9578e6af7d206cd72374773b8a99 |