Esempio n. 1
0
auto_follow("phrase", count=100)
'''
from twitter_follow_bot import auto_follow
auto_follow("#socialmedia", count=100)

'''
#2 In this code, change "jwmares" to the twitter handle whose followers you want to follow, 
and set the count to how many people should be followed. Default is 100.

from twitter_follow_bot import auto_follow_followers_for_user
auto_follow_followers_for_user("jwmares", count=10)
'''
from twitter_follow_bot import auto_follow_followers_for_user
auto_follow_followers_for_user("@JennyBrennanMe ", count=100)

'''
#3 This code will let you favoite things that are relevant to you. Just replace "phrase" with the phrase
you want to favorite for, and set the count to how many things you want to favorite.

from twitter_follow_bot import auto_fav
auto_fav("phrase", count=100)
'''

from twitter_follow_bot import auto_fav
auto_fav("#socialmedia", count=100)

'''
#4 This code will automatically un-follow everyone who hasn't followed you back.

from twitter_follow_bot import auto_unfollow_nonfollowers
auto_unfollow_nonfollowers()
Esempio n. 2
0
from twitter_follow_bot import auto_follow
auto_follow("musictech", count=2)

#2 In this code, change "jwmares" to the twitter handle whose followers you want to follow, and set the count to how many people should be followed. Default is 100.

from twitter_follow_bot import auto_follow_followers_for_user
auto_follow_followers_for_user("musictech", count=5)


'''
#3 This code will let you favoite things that are relevant to you. Just replace "phrase" with the phrase
you want to favorite for, and set the count to how many things you want to favorite. 
'''

from twitter_follow_bot import auto_fav
auto_fav("indiemusic", count=5)

from twitter_follow_bot import auto_fav
auto_fav("digitalmarketing", count=5)

from twitter_follow_bot import auto_fav
auto_fav("growthhacker", count=5)

from twitter_follow_bot import auto_fav
auto_fav("blockchain", count=5)

from twitter_follow_bot import auto_fav
auto_fav("musictech", count=5)

'''
#4 This code will automatically un-follow everyone who hasn't followed you back.
Esempio n. 3
0
code is (they have to be in the same folder), and just type in "python sample_twitter_codes.py" (without quotes)

WARNING: Following too many people, favoriting too many things, CAN and WILL get you banned.

Be smart. And have fun :). 

Justin and Nat
'''

#1 Here you can automatically follow people who tweet about a certain phrase. Just replace the phrase
#with something relevant to you! Also you can set the count to whatever makes you most comfortable.
#from twitter_follow_bot import auto_follow
#auto_follow("marketing", count=50)

#2 In this code, change "jwmares" to the twitter handle whose followers you want to follow,
#and set the count to how many people should be followed. Default is 100.

#from twitter_follow_bot import auto_follow_followers_for_user
#auto_follow_followers_for_user("", count=30)

#3 This code will let you favoite things that are relevant to you. Just replace "phrase" with the phrase
#you want to favorite for, and set the count to how many things you want to favorite.

from twitter_follow_bot import auto_fav
auto_fav("marketing", count=100)

#4 This code will automatically un-follow everyone who hasn't followed you back.

#from twitter_follow_bot import auto_unfollow_nonfollowers
#auto_unfollow_nonfollowers()
from twitter_follow_bot import auto_follow
auto_follow("bitcoin", count=2)

#2 In this code, change "jwmares" to the twitter handle whose followers you want to follow, and set the count to how many people should be followed. Default is 100.

from twitter_follow_bot import auto_follow_followers_for_user
auto_follow_followers_for_user("GrowthHackers", count=5)


'''
#3 This code will let you favoite things that are relevant to you. Just replace "phrase" with the phrase
you want to favorite for, and set the count to how many things you want to favorite. 
'''

from twitter_follow_bot import auto_fav
auto_fav("machinelearning", count=5)

from twitter_follow_bot import auto_fav
auto_fav("digitalmarketing", count=5)

from twitter_follow_bot import auto_fav
auto_fav("growthhacker", count=5)

from twitter_follow_bot import auto_fav
auto_fav("blockchain", count=5)

from twitter_follow_bot import auto_fav
auto_fav("bitcoin", count=5)

'''
#4 This code will automatically un-follow everyone who hasn't followed you back.
Esempio n. 5
0
'''
#1 Here you can automatically follow people who tweet about a certain phrase. Just replace the phrase
with something relevant to you! Also you can set the count to whatever makes you most comfortable.

from twitter_follow_bot import auto_follow
auto_follow("phrase", count=100)
'''

'''
#2 In this code, change "jwmares" to the twitter handle whose followers you want to follow, 
and set the count to how many people should be followed. Default is 100.

from twitter_follow_bot import auto_follow_followers_for_user
auto_follow_followers_for_user("jwmares", count=10)
'''

'''
#3 This code will let you favoite things that are relevant to you. Just replace "phrase" with the phrase
you want to favorite for, and set the count to how many things you want to favorite.
'''

from twitter_follow_bot import auto_fav
auto_fav("ecommerce marketing", count=100)


'''
#4 This code will automatically un-follow everyone who hasn't followed you back.

from twitter_follow_bot import auto_unfollow_nonfollowers
auto_unfollow_nonfollowers()
'''

#2 In this code, change "jwmares" to the twitter handle whose followers you want to follow, 
and set the count to how many people should be followed. Default is 100.

from twitter_follow_bot import auto_follow_followers_for_user
auto_follow_followers_for_user("", count=5)


'''
#3 This code will let you favoite things that are relevant to you. Just replace "phrase" with the phrase
you want to favorite for, and set the count to how many things you want to favorite. 
'''

from twitter_follow_bot import auto_fav
auto_fav("", count=25)



'''
#4 This code will automatically un-follow everyone who hasn't followed you back.

from twitter_follow_bot import auto_unfollow_nonfollowers
auto_unfollow_nonfollowers()
'''

'''
#5 This code will automatically retweet any tweets with the phrase or hastag chosen in it.'''

from twitter_follow_bot import auto_rt
auto_rt("", count=10)
#1 Here you can automatically follow people who tweet about a certain phrase. Just replace the phrase
with something relevant to you! Also you can set the count to whatever makes you most comfortable.
'''
from twitter_follow_bot import auto_follow
auto_follow("snowboard", count=100)


'''
#2 In this code, change "jwmares" to the twitter handle whose followers you want to follow, 
and set the count to how many people should be followed. Default is 100.
'''
from twitter_follow_bot import auto_follow_followers_for_user
auto_follow_followers_for_user("@burtonsnowboard", count=100)



'''
#3 This code will let you favoite things that are relevant to you. Just replace "phrase" with the phrase
you want to favorite for, and set the count to how many things you want to favorite.
'''
from twitter_follow_bot import auto_fav
auto_fav("snowboard", count=100)

'''
from twitter_follow_bot import auto_fav
auto_fav("capita", count=100)

from twitter_follow_bot import auto_fav
auto_fav("mountain", count=100)

Esempio n. 8
0
from twitter_follow_bot import auto_follow
auto_follow("phrase", count=100)
'''
from twitter_follow_bot import auto_follow
auto_follow("#socialmedia", count=100)
'''
#2 In this code, change "jwmares" to the twitter handle whose followers you want to follow, 
and set the count to how many people should be followed. Default is 100.

from twitter_follow_bot import auto_follow_followers_for_user
auto_follow_followers_for_user("jwmares", count=10)
'''
from twitter_follow_bot import auto_follow_followers_for_user
auto_follow_followers_for_user("@JennyBrennanMe ", count=100)
'''
#3 This code will let you favoite things that are relevant to you. Just replace "phrase" with the phrase
you want to favorite for, and set the count to how many things you want to favorite.

from twitter_follow_bot import auto_fav
auto_fav("phrase", count=100)
'''

from twitter_follow_bot import auto_fav
auto_fav("#socialmedia", count=100)
'''
#4 This code will automatically un-follow everyone who hasn't followed you back.

from twitter_follow_bot import auto_unfollow_nonfollowers
auto_unfollow_nonfollowers()
'''
Esempio n. 9
0
import time
from twitter_follow_bot import auto_fav, auto_rt

# run 15 times a day (once per hour) starting 6AM PST, total of 3*1*15= 45 favorites a day
for x in range(0, 2):
    auto_fav('keyword1', count=1) #add your own keywords
    auto_rt('keyword1', count=1, result_type="recent")
    time.sleep(60)
    auto_fav('keyword2', count=1) #add your own keywords
    auto_rt('keyword2', count=1, result_type="recent")
    time.sleep(60)
    #add more if necessary
Esempio n. 10
0
from twitter_follow_bot import auto_follow

auto_follow("")
###You can also search based on hashtags.

###By default, the bot looks up the 100 most recent tweets. You can change this number with the count parameter:

from twitter_follow_bot import auto_follow

auto_follow("", count=100)
####Automatically follow any users that have followed you

from twitter_follow_bot import auto_follow_followers

auto_follow_followers()
####Automatically favorite any tweets that have a specific phrase

from twitter_follow_bot import auto_fav

auto_fav("", count=100)
####Automatically retweet any tweets that have a specific phrase

from twitter_follow_bot import auto_rt

#auto_rt("phrase", count=100)
####Automatically unfollow any users that have not followed you back (with exceptions that you can set)

###from twitter_follow_bot import auto_unfollow_nonfollowers

###auto_unfollow_nonfollowers()
Esempio n. 11
0
Justin and Nat
'''


#1 Here you can automatically follow people who tweet about a certain phrase. Just replace the phrase
#with something relevant to you! Also you can set the count to whatever makes you most comfortable.
#from twitter_follow_bot import auto_follow
#auto_follow("marketing", count=50)



#2 In this code, change "jwmares" to the twitter handle whose followers you want to follow, 
#and set the count to how many people should be followed. Default is 100.

#from twitter_follow_bot import auto_follow_followers_for_user
#auto_follow_followers_for_user("", count=30)



#3 This code will let you favoite things that are relevant to you. Just replace "phrase" with the phrase
#you want to favorite for, and set the count to how many things you want to favorite.

from twitter_follow_bot import auto_fav
auto_fav("marketing", count=100)

#4 This code will automatically un-follow everyone who hasn't followed you back.

#from twitter_follow_bot import auto_unfollow_nonfollowers
#auto_unfollow_nonfollowers()
Esempio n. 12
0
HSTRYDBF = 'database.db'

NUMITEMS = 5

badword_list = [line.strip() for line in open(BADWORDS, 'r')]
keyword_list = [line.strip() for line in open(KEYWORDS, 'r')]
baduser_list = [line.strip() for line in open(BADUSERS, 'r')]

t = Twitter(auth=OAuth(OAUTH_TOKEN, OAUTH_SECRET,
            CONSUMER_KEY, CONSUMER_SECRET))

# favourite new tweets
for arg in keyword_list:
    print "Results for %s" % arg
    print "====================="
    userList = auto_fav(t, arg, count=NUMITEMS,
                        badwords=badword_list, badusers=baduser_list)

    cn = None
    try:
        cn = lite.connect(HSTRYDBF)
        for user in userList:
            cursor = cn.cursor()
            cursor.execute('INSERT INTO ' + HSTRYTAB +
                           '(timestamp, tweetid, userid)  VALUES (?, ?, ?);',
                           (time.time(), user[0], user[1]))
            cn.commit()
            print "Inserted user %s with id %s" % (user[0], user[1])
    except lite.Error, e:
        print "Error %s while storing favourite history" % e.args[0]

    finally: