Skip to content

Instantly share code, notes, and snippets.

@00101010b
00101010b / twitter-block-user.py
Last active November 11, 2015 01:54
Simple script to block annoying twitter spammers. Requires twitter API codes.
#!/usr/bin/env python
# Import TwitterAPI
# you can install this library via the commandline:
# $ pip install --user TwitterAPI
from TwitterAPI import TwitterAPI
# setup TwitterAPI
# you will have to get an API key set from: https://apps.twitter.com/ before you can use this script.
api = TwitterAPI( \