twistedtrick
Power Member
- Aug 21, 2009
- 674
- 395
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
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
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: