Skip to content

Instantly share code, notes, and snippets.

@theepicsnail
theepicsnail / kaa.py
Created Nov 26, 2011 — forked from maxcountryman/kaa.py
A very simple non-blocking IRC bot using gevent
View kaa.py
import gevent
from gevent import socket, queue
from gevent.ssl import wrap_socket
import logging
logger = logging.getLogger('irc')
logger.setLevel(logging.DEBUG)
ch = logging.StreamHandler()
View twitter_sentiment.py
USER = "your_twitter_user"
PASS = "your_twitter_pass"
if "your_twitter" in USER+PASS:
print "You didn't set your twitter username and password in the script!"
USER = raw_input("Username>")
PASS = raw_input("Password>")
import urllib2, json, base64, sys, os