[iMacros] Get Twitter Followers Easily!

Awesome contribution, thanks! I don't know how to put together more complex/multithreaded bots so I have found that iMacros is a great way to get started with automating simpler tasks quickly and effectively.

Since I am using this for my main Twitter account right now, I figured I would add a little bit of variance to the wait. It will choose a random time between 1 and 60 seconds, and then wait that long before doing the next "Favorite". As you can see I am using this right now with the Russian Meteor trend :)

Thanks again for the original code OP! iMacros randomNumber function code used from http://wiki.imacros.net/EVAL#Random_wait

*As a sidenote, I would recommend acquiring a copy of iMacros Standard/Enterprise Edition if you use iMacros frequently, I find that it works a lot better than the FF addon.

V1.01
Code:
VERSION BUILD=6011206 RECORDER=CR
SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*60 + 1); randomNumber;")
URL GOTO=https://twitter.com/search/realtime?q=%23RussianMeteor&src=typd
TAG POS=1 TYPE=SPAN ATTR=TXT:Favorite
WAIT SECONDS={{!VAR1}}
TAG POS=2 TYPE=SPAN ATTR=TXT:Favorite
SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*60 + 1); randomNumber;")
WAIT SECONDS={{!VAR1}}
TAG POS=3 TYPE=SPAN ATTR=TXT:Favorite
SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*60 + 1); randomNumber;")
WAIT SECONDS={{!VAR1}}
TAG POS=4 TYPE=SPAN ATTR=TXT:Favorite
SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*60 + 1); randomNumber;")
WAIT SECONDS={{!VAR1}}
TAG POS=5 TYPE=SPAN ATTR=TXT:Favorite
SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*60 + 1); randomNumber;")
WAIT SECONDS={{!VAR1}}
TAG POS=6 TYPE=SPAN ATTR=TXT:Favorite
SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*60 + 1); randomNumber;")
WAIT SECONDS={{!VAR1}}
TAG POS=7 TYPE=SPAN ATTR=TXT:Favorite
SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*60 + 1); randomNumber;")
WAIT SECONDS={{!VAR1}}
TAG POS=8 TYPE=SPAN ATTR=TXT:Favorite
SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*60 + 1); randomNumber;")
WAIT SECONDS={{!VAR1}}
TAG POS=9 TYPE=SPAN ATTR=TXT:Favorite
SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*60 + 1); randomNumber;")
WAIT SECONDS={{!VAR1}}
TAG POS=10 TYPE=SPAN ATTR=TXT:Favorite
SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*60 + 1); randomNumber;")
WAIT SECONDS={{!VAR1}}
TAG POS=11 TYPE=SPAN ATTR=TXT:Favorite
SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*60 + 1); randomNumber;")
WAIT SECONDS={{!VAR1}}
TAG POS=12 TYPE=SPAN ATTR=TXT:Favorite
SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*60 + 1); randomNumber;")
WAIT SECONDS={{!VAR1}}
TAG POS=13 TYPE=SPAN ATTR=TXT:Favorite
SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*60 + 1); randomNumber;")
WAIT SECONDS={{!VAR1}}
TAG POS=14 TYPE=SPAN ATTR=TXT:Favorite
SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*60 + 1); randomNumber;")
WAIT SECONDS={{!VAR1}}
TAG POS=15 TYPE=SPAN ATTR=TXT:Favorite

EDIT: This version will click that little "## New Tweets" every 4 Favorites to keep fresh stuff incoming. If the button doesn't exist, the macro will just ignore it and move onto the next line after the default timeout (6 seconds).

V1.02
Code:
VERSION BUILD=6011206 RECORDER=CR
SET !ERRORIGNORE YES
SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*60 + 1); randomNumber;")
URL GOTO=https://twitter.com/search/realtime?q=%23RussianMeteor&src=typd
TAG POS=1 TYPE=SPAN ATTR=TXT:Favorite
WAIT SECONDS={{!VAR1}}
TAG POS=2 TYPE=SPAN ATTR=TXT:Favorite
SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*60 + 1); randomNumber;")
WAIT SECONDS={{!VAR1}}
TAG POS=3 TYPE=SPAN ATTR=TXT:Favorite
SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*60 + 1); randomNumber;")
WAIT SECONDS={{!VAR1}}
TAG POS=4 TYPE=SPAN ATTR=TXT:Favorite
TAG POS=2 TYPE=DIV ATTR=TXT:*<SP>new<SP>Tweets
SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*60 + 1); randomNumber;")
WAIT SECONDS={{!VAR1}}
TAG POS=5 TYPE=SPAN ATTR=TXT:Favorite
SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*60 + 1); randomNumber;")
WAIT SECONDS={{!VAR1}}
TAG POS=6 TYPE=SPAN ATTR=TXT:Favorite
SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*60 + 1); randomNumber;")
WAIT SECONDS={{!VAR1}}
TAG POS=7 TYPE=SPAN ATTR=TXT:Favorite
SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*60 + 1); randomNumber;")
WAIT SECONDS={{!VAR1}}
TAG POS=8 TYPE=SPAN ATTR=TXT:Favorite
TAG POS=2 TYPE=DIV ATTR=TXT:*<SP>new<SP>Tweets
SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*60 + 1); randomNumber;")
WAIT SECONDS={{!VAR1}}
TAG POS=9 TYPE=SPAN ATTR=TXT:Favorite
SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*60 + 1); randomNumber;")
WAIT SECONDS={{!VAR1}}
TAG POS=10 TYPE=SPAN ATTR=TXT:Favorite
SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*60 + 1); randomNumber;")
WAIT SECONDS={{!VAR1}}
TAG POS=11 TYPE=SPAN ATTR=TXT:Favorite
SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*60 + 1); randomNumber;")
WAIT SECONDS={{!VAR1}}
TAG POS=12 TYPE=SPAN ATTR=TXT:Favorite
TAG POS=2 TYPE=DIV ATTR=TXT:*<SP>new<SP>Tweets
SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*60 + 1); randomNumber;")
WAIT SECONDS={{!VAR1}}
TAG POS=13 TYPE=SPAN ATTR=TXT:Favorite
SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*60 + 1); randomNumber;")
WAIT SECONDS={{!VAR1}}
TAG POS=14 TYPE=SPAN ATTR=TXT:Favorite
SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*60 + 1); randomNumber;")
WAIT SECONDS={{!VAR1}}
TAG POS=15 TYPE=SPAN ATTR=TXT:Favorite
 
Last edited:
How many loops would you guys recommend And how long of a wait time? Ideally I'd like to avoid warnings (or suspensions) and stay under the radar.
 
Thanks for sharing a great method to get twitter followers.
 
I dont understand this... yes the script favorited but when you leave it, it just repeating the process of favoriting/unfavoriting end up like you favorited no one... i dont know how it increases your followers..
 
Thanks so much. Im a newbie but I got the imacros ext and read, re-read, trial and error, but got it working smoothly. Can I change the "favorite" command to "retweet"? I have already manipulated the timing, but I'd like to try retweeting if possible.
 
I just wanted to say thanks again. Im a newbie who has NEVER even heard of imacros before now. I worked with it, learned how manipulate scripts, and your method has gotten me 800+ followers within the past two weeks. Much Appreciated
 
Wow man, thanks for this script!
Currently, AskTheDragon is trending and I'm getting my followers from bruno mars fanbase :)
Anyway,it is working great for me, so try to choose a worldwide trending topic, new tweets every second.
 
i have made an "improved" version of the script. at least now it doesn't hit unfavourite.

2 bad i can't post it because it apparently triggers the moderation system. if you look inside the script that was first posted you will see a pattern that it's easy to modify.

i just added another time variable after each favorite tag and now it works great
 
This is very helpful, however I am unsure how to get this to continue through the Twitter search results beyond the 15th tweet. I have iMacros on loop, however when it loops, it unfavorites some tweets that I had just favorited. Any suggestions?
 
Love this script, But It stopped working this week... Im getting this message "RuntimeError: element SPAN specified by TXT:Favorite was not found, line: 3 (Error code: -921)" any hope?? I was on fire with this script... I had like Over 9000 ​new follows
 
I installed this and it appears to be running, (goes to trend page) but I don't see any favorites in favorites folder. The script runs and repeats with no errors. Wonder what I am doing wrong?

any help appreciated for this noob. ~J
 
I've noticed that Twitter must have changed something in their website to where it doesn't use the same way to favorite tweets. Even if you try recording a new script it won't record when you press "favorite." I'll see what I can do from here though..
Cheers!
 
Back
Top