Simple Twitter CLI for day-to-day social media hygiene
Project description
plumes
Simple Twitter CLI for day-to-day social media hygiene
·
Report Bug
·
Request Feature
Contents
Overview
Plumes
is an open-source Python CLI app for day-to-day social media hygiene.
It was designed to provide a simple, clear, and concise interface to quickly explore and clean a personal Twitter account.
Inspiration
Installation
# python >=3.6.1 is required
pip install plumes
Usage
Getting Started And Creating Your Authentication Config
# create your config file
plumes init
Export Your Friends
Extract friends ordered in which they were added:
plumes friends <flags>
- Optional flags:
--screen_name
: alternative user (defaults to yourself)--limit
: max number of users to export--output
: alternative output path
Export Your Followers
Extract followers ordered in which they were added:
plumes followers <flags>
- Optional flags:
--screen_name
: alternative user (defaults to yourself)--limit
: max number of users to export--output
: alternative output path
Export Your Tweets
Extract tweets ordered in by most recent:
plumes tweets <flags>
- Optional flags:
--screen_name
: alternative user (defaults to yourself)--limit
: max number of tweets to export--output
: alternative output path
Prune Your Friends
plumes prune_friends PATH <flags>
# e.g.,
plumes friends --output "friends.json"
plumes prune_friends "friends.json" --min_followers 100 --execute
PATH
: path to JSON file exported fromplumes friends
- Optional flags:
--execute
: actually perform the pruning process, else a dry-run is performed--days
: prune by number of days since last tweeted--min_followers
/--max_followers
: prune by number of followers--min_friends
/--max_friends
: prune by number of friends--min_tweets
/--max_tweets
: prune by number of tweets--min_ratio
/--max_ratio
: prune by Twitter follower-friend (TFF) ratio
Prune Your Tweets
plumes prune_tweets PATH <flags>
# e.g.,
plumes tweets --output "tweets.json"
plumes prune_tweets "tweets.json" --days 60 --protect_favorited --execute
PATH
: path to JSON file exported fromplumes tweets
- Optional flags:
--execute
: actually perform the pruning process, else a dry-run is performed--days
: prune age of tweet--protect_favorited
: don't prune self-liked tweets--min_likes
/--max_likes
: prune by number of likes--min_retweets
/--max_retweets
: prune by number of retweets--min_ratio
/--max_ratio
: prune by Twitter like-retweet ratio
Setting Up Authentication
Get Your Twitter API Tokens
-
Navigate to the Twitter Dev Portal
-
Click
Create an app
-
Fill out the forms
-
Navigate to
Keys and tokens
-
Copy the values for
API key
,API secret key
,Access token
, andAccess token secret
Configuring plumes
The API tokens can either be set as environment variables (using the PLUMES_
prefix; e.g., export PLUMES_CONSUMER_KEY=xxxxx
) or configuration variables in ~/.plumes.toml
:
- CONSUMER_KEY =
<API key>
- CONSUMER_SECRET =
<API secret key>
- ACCESS_TOKEN =
<Access token>
- ACCESS_TOKEN_SECRET =
<Access token secret>
Contributing
Please see CONTRIBUTING.md
and the Code of Conduct for how to contribute to the project
Testing
- Please review the
Makefile
for an overview of all available tests - The most important tests and
make
commands are highlighted below:
# auto-format code
make format
# perform all static tests
make check
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
Built Distribution
File details
Details for the file plumes-2.0.0.tar.gz
.
File metadata
- Download URL: plumes-2.0.0.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.5 Linux/5.3.0-1034-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec3f2174fa1903d4150ebe676a0d2d1adf49e55263fc3a312794eb8df24e78c6 |
|
MD5 | d21949717336d376764c96925ecab56c |
|
BLAKE2b-256 | 449f7f943843da5157e9eda6a4ab0366692fe59dd2d18ca33153a0eb8b366795 |
File details
Details for the file plumes-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: plumes-2.0.0-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.5 Linux/5.3.0-1034-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4dcf2c73071027a7fcf3508b0435d1ff3e37714bfb4278cf9b00590cc9e219de |
|
MD5 | 0c494462aa60ac26c97baf2988a72e99 |
|
BLAKE2b-256 | 3e3ff3f9f1a55726492a69526cbb18feb698a7e7c33966a5703e7132eb434d7a |