This repository contains some simple, but useful Python scripts that the typical Linux or OSX user should be able to employ with just a little bit of prep work.
Prior to installation you will need Python and its package manager, pip. Some systems such as Debian Linux will permit you to install with apt. OSX users can simply use easy_install, which comes with the system.
apt install python-pip
sudo easy_install pip
As a worst case, download, unpack, and run setuptools. This should get you to a working pip on any unix system.
The tw-oauth program includes application keys attached to @bwobserver323. Run this script, past the resulting URL into a browser where your Twitter account is logged in, then cut and paste the resulting PIN back to the command line app. It will write your oauth credentials in ~/.twitter
There are a number of small scripts included:
tw-oauth authorize Twitter access
tw-user show some information about a Twitter account
tw-myname show actual name that goes with ~/.twitter creds
tw-follow follow an account
tw-unfollow unfollow an account
tw-block block a single account by screen name or numeric ID
tw-unblock unblock a single account by screen name or numeric ID
tw-showblocks show blocks up to 5,000.
tw-bulkunblock export your blocks, feed the result file to this & unblock
tw-lists show lists for given user, or for authed account
tw-listmemb show members of a list + user, or just authed user