Code Monkey home page Code Monkey logo

enlist's Introduction

enlist

tool to manage twitter blocks via lists

This is a simple script that can quietly run on your computer, or a spare EC2 instance somewhere. It watches lists you maintain in your Twitter account, and blocks users that you add to the lists. Additionally, it can block followers of the users you add too. The entire user interface is two private lists in your Twitter account.

How it works

Every user added to the chuds list gets blocked.

For every user added to the megachuds list:

  • All their followers are blocked.
  • Then they are too!

All quietly in the background, while obeying Twitter's API rate limits. Lists turn out to function as a great queue of users to block: as soon as they are blocked, they vanish from lists, making lists perfect for keeping this tool's state, even across runs.

Requirements

  • just the twitter python library (pip install python-twitter)

Configuration

You'll need a config file named .twitter in your home directory, which looks like this:

[DEFAULT]
screen_name: (your screen name)
consumer_key: (your consumer key)
consumer_secret: (your consumer secret)
access_token_key: (your access token key)
access_token_secret: (your access token secret)

You can genereate consumer keys and access tokens for your account at https://apps.twitter.com/

Command line arguments

Defaults should be fine for most use, but available arguments are:

  --sleep SLEEP         interval to poll lists on (default 30)
  --chuds-list CHUDS_LIST
                        name of list of users to block (default 'chuds')
  --megachuds-list MEGACHUDS_LIST
                        name of list of users to block, along with followers (default 'megachuds')
  --verbose             enable debugging output

The script will create the lists for you the first time it runs, if they don't exist yet.

enlist's People

Contributors

mattghali avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

hotelzululima

enlist's Issues

Video tutorial?

Would it be possible to make a video tutorial on how to use this script? I'm looking for a way to block all of someone's followers, but I don't understand how to use this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.