Skip to content
Various Twitter utilities
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
example.conf
requirements.txt
test
tw-block
tw-bulkunblock
tw-follow
tw-listmemb
tw-lists
tw-myname
tw-oauth
tw-showblocks
tw-unblock
tw-unfollow
tw-user

README.md

TwitterUtils

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.

https://pypi.python.org/pypi/setuptools

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

You can’t perform that action at this time.