Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Search tweets in public timeline, filter who uses Foursquare and send to hell.
# -*- coding: utf-8 -*-
import tweepy
from random import choice
#Twitter Information
CONSUMER_KEY = "asdasdadasdads"
auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)
auth.set_access_token(ACCESS_KEY, ACCESS_SECRET)
API = tweepy.API(auth)
replys = ['WHO CARES?!',
'O RLY?',
u'Nobody cares ¬¬',
'OK, here I go!',
'Thanks. Hold your hands up, I cant see you...'
'OK ...',
'SO WHAT?!',
API = tweepy.API(auth)
public = API.public_timeline()
for tweet in public:
if tweet.source =='foursquare':
API.update_status( "@"+ +" "+ choice(replys) ,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment