How to Make a Twitter Bot That Will Automatically Retweet Users by Keywords That You Specify
Auto Retweet Keyword Bot: this bot will auto retweet your Twitter friends according to your target keywords, thus giving you an edge when it comes to keeping in touch with your network. The automatic retweets will boost your chances of being listed, followed and retweeted in return.
With this technique you can make a twitter bot with no coding. Normally give someone a ReTweet enough to make them follow you and it keeps your profile active, so you can semi-automate the accounts and use it as an aid for making connections.
Step 1: Make your Twitter account Bot to Auto Retweet Keyword
Go to Twitter.com and create a new account for your Auto Retweet Keyword Bot. Try to choose a nice name and cute avatar. Or something as kool background?!
Step 2: Find conversations that you want to Auto Retweet Keyword
Okay, we have our Twitter account and we will need to scan for any twitter conversations retweet. To do this we'll use Twitter Search. In this example we are going to search for ["thanks 4 following"], but to stop our bot Retweeting you want to add a negative keyword to your botname. So research ["thanks 4 following"-botname], probably this: (This would be the keyword that you want for your Auto Retweet Keyword Bot)
My bot is called “Gain2Top”.
Step 3: Getting the feed for Auto Retweet Keyword
The next thing you need to do is get the feed results, which isn’t quite as simple as you’d think you see. Twitter being a bit of a prude doesn’t like bots and services like Feedburner or Pipes interacting with it, so you’re going to need to repurpose the feed or it’s game over for you. After you’ve done your search you need to get the feed location (top right) so copy the URL of the “Feed for this query”. Save that in a safe place, we’ll need it in next step.
(This RSS link contains the keywords that you want for your Auto Retweet Keyword Bot)
Step 4: Making the feed accessible
OK, so there is a little small quantity of code, but this is All! You will need to republish the feed so it can be viewed at the latest. Everything we do is to scratch the whole feed results page on our own server. Next, create a file called "myfeed.php" and put this in it:
That need to be replaced by anything Twitter's RSS feed you that we carefully saved and stored in a safe place earlier. If you lose that URL, please proceed back to Step 3 and consider yourself a failure. So this has been completed and uploaded to your myfeed.php your domain name, you can access real-time results Twitter feed by visiting http://www.yourdomain.com/ myfeed.php.
Step 5: Yahoo Pipes!
Now, we’re going to set up most of the mechanism for our bot in Yahoo Pipes. You’ll need login to your Yahoo account, and click “Create a Pipe” at the top of the screen. This will give you a blank canvas. Add “Fetch Feed” block from “Sources”. Then in the “URL” field, enter the URL of the feed we repurposed, http://www.yourdomain.com/myfeed.php
Add “Filter” block from “Operators”:
Leave the settings as “Block” and “all” then add the following rules:
item.title CONTAINS RT.*RT
item.title CONTAINS @
item.twitter:lang DOES NOT CONTAIN EN
(You click the little green + to add more rules). Once you’ve done that drag a line between the bottom of the “Feed Fetch” box and the top of the “Filter” box to connect them.
Add “Loop” block from “Operators”:
Add a “String Builder” from “String” and drag in ONTO the “Loop” block you just added. In the String Builder block you just put inside the Loop block, add these 3 items:
Check the radio box of “assign results to” and change this to item.title
Now drag a connection between your Filter and Loop blocks. Should look like this now:
Add “Regex” block from “Operators”:
Add these two rules:
item.title REPLACE http://twitter.com/ WITH RT @
item.title REPLACE 2009 WITH (space character)
Extra points for anyone who writes “(space character)” instead of using a space. Also don’t miss the trailing slash from twitter.com/
Drag a connection between Loop Block and Regex Block, then a connection between Regex and Pipe Output blocks. Finished!
Save your pipe (name it whatever you like) and Run Pipe (at the top of the screen). Once you run your pipe, you’ll get an output screen like this:
What you need to do here is save the URL of your pipe’s RSS feed and keep it in a safe place. If you didn’t lose your RSS feed from Step 3, then I’d suggest keeping it in the same place as that.
Step 6: TwitterFeed
All we need to do now is whack our feed into our TwitterBot account, which is made really easy with TwitterFeed.com. Get yourself over there and sign up for an account. To set up your bot in TwitterFeed:
1) I suggest not using Oauth, as it will make it easer to use multiple Twitter accounts. Click the “Having Oauth Problems?” link and enter the username and password for your TwitterBot account and hit test account details.
2) Name your feed whatever you like and then enter the URL of your Yahoo Pipes RSS that we carefully saved earlier, then hit “test feed”.
3) Important: Click “Advanced Settings” we need to change some stuff here:
Post Frequency: Every 30mins Updates at a time: 5 Post Content: Title Only Post Link: No (uncheck)
Then hit “Create Feed”. Finished!!!!
Congratulations, so you've got a Auto Retweet Keyword Bot