This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Usage: | |
# 1) Install the Python Twitter Tools (PTT) from http://mike.verdone.ca/twitter/ | |
# (or just "easy_install twitter"). | |
# 2) Run "twitter-follow -o blahblahblah" and follow the instructions to set up | |
# OAuth. This gives the twitter-follow script read-only access to your account. | |
# Technically, it doesn't even need to be *your* account that you authorize, | |
# since the script is only querying public follower information. | |
# 3) Modify the value of "my_handle" to the username of the Twitter user whose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import os | |
import os.path | |
import sys | |
parser = argparse.ArgumentParser() | |
parser.add_argument("-p", "--port", type=int, help="Port to open for HTTP connections", default=80) | |
parser.add_argument("-d", "--dir", help="Root directory to serve", default=".") | |
args = parser.parse_args() |
NewerOlder