This file contains hidden or 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 tweepy | |
| username = 'hugsbot' | |
| password = 'secret' | |
| api = tweepy.API(tweepy.BasicAuthHandler(username,password)) | |
| def givehugs(): | |
| for follower in tweepy.Cursor(api.followers).items(): | |
| print follower.screen_name | |
| api.update_status('@%s Hi, this is your daily hug *hug*' % follower.screen_name) | |
| hugssince = 0 | |
| def searchhugs(): |
This file contains hidden or 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
| /* | |
| * TV Timer by Harrison Conlin | |
| * http://harrisony.com/tvtimer.html | |
| * | |
| */ | |
| #include <LiquidCrystal.h>; | |
| #define BTN2 (15) | |
| #define POT (3) | |
| #define PIEZO (9) |
This file contains hidden or 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
| # wget http://python-twitter.googlecode.com/svn-history/r151/branches/hameedullah/twitter.py -O twitterwithsearch.py | |
| import twitterwithsearch as twitter | |
| done = [] | |
| testfile = open('spammers.txt', 'U') | |
| for p in testfile: | |
| done.append(p.rstrip()) | |
| username = '' | |
| password = '' | |
| ts = twitter.Api(username=username, password=password) | |
| aq = ts.Search("CTX Mortgage reportedly for sale",rpp=50) |
NewerOlder