[go: nahoru, domu]

Skip to content

Commit

Permalink
Updated based on new method names
Browse files Browse the repository at this point in the history
Updated the methods based on their new names:
auto_fav ---> auto_fav_phrase
auto_rt ---> auto_rt_phrase
auto_follow ---> auto_follow_from_phrase

New methods:
auto_fav_phrase_then_follow
auto_rt_phrase_then_follow
  • Loading branch information
kenncann committed Jul 31, 2015
1 parent 4f2e639 commit a3ea01b
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,21 +116,21 @@ This bot has several functions for programmatically interacting with Twitter:
from TwitterFollowBot import TwitterBot

my_bot = TwitterBot()
my_bot.auto_follow("phrase")
my_bot.auto_follow_from_phrase("phrase")

You can also search based on hashtags:

from TwitterFollowBot import TwitterBot

my_bot = TwitterBot()
my_bot.auto_follow("#hashtag")
my_bot.auto_follow_from_phrase("#hashtag")

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

from TwitterFollowBot import TwitterBot

my_bot = TwitterBot()
my_bot.auto_follow("phrase", count=1000)
my_bot.auto_follow_from_phrase("phrase", count=1000)

####Automatically follow any users that have followed you

Expand All @@ -151,21 +151,28 @@ By default, the bot looks up the 100 most recent tweets. You can change this num
from TwitterFollowBot import TwitterBot

my_bot = TwitterBot()
my_bot.auto_fav("phrase", count=1000)
my_bot.auto_fav_phrase("phrase", count=1000)

####Automatically retweet any tweets that have a specific phrase
####Automatically favorite a tweet with a specific phrase, then follow that user

from TwitterFollowBot import TwitterBot

my_bot = TwitterBot()
my_bot.auto_rt("phrase", count=1000)
my_bot.auto_fav_phrase_then_follow("phrase", count=1000)

####Automatically favorite a tweet with a specific phrase, then follow that user
####Automatically retweet any tweets that have a specific phrase

from TwitterFollowBot import TwitterBot

my_bot = TwitterBot()
my_bot.auto_rt_phrase("phrase", count=1000)

####Automatically retweet a tweet with a specific phrase, then follow that user

from TwitterFollowBot import TwitterBot

my_bot = TwitterBot()
my_bot.auto_fav_then_follow("phrase", count=1000)
my_bot.auto_rt_phrase_then_follow("phrase", count=1000)

####Automatically unfollow any users that have not followed you back

Expand Down

0 comments on commit a3ea01b

Please sign in to comment.