Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Add users to a list from a file.
Python
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
README.md
config.json.example
requirements.txt
twitty-lister.py

README.md

Twitty-Lister

This program is a simple tool to import users from a file into a Twitter list.

Installation

  1. Download twitty-lister.py
  2. pip install -r requirements.txt

Usage

To run twitty-lister you will need two files. The first is a config.json which will contain your app keys.

{
  "consumer": {
    "secret": "YOUR-SECRET-HERE",
    "key": "YOUR-KEY-HERE"
  }
}

You will also need a list file with all of your screen names to import. This can be fairly dirty as twitty-lister will clean them up for you.

@jmhobbs
whatcheer
    @alexpgates
@iliveinomaha
bnispel  
  @iloveinomaha
johnhenrymuller  

Next, you will need to run twitty-lister.py and authorize the account through the PIN mechanism. After you authorize, it will add the users in blocks of 100.

(venv)jmhobbs@Cordelia~/twitty-lister$ python twitty-lister.py "What Cheer" screen_names 
==> Loading 7 users into "What Cheer"
==> Please authorize: http://api.twitter.com/oauth/authorize?oauth_token=xzKc2CHt22Xf3yqP3R0e9D3ACCIoPbNmOxfbLZaPWE
==> PIN: 9546060
==> List doesn't exist, creating it
==> Sending #0 through #100
==> Done!

That's it!

The list!

Something went wrong with that request. Please try again.