iMacros StumbleUpon Follow button

Scorpion Ghost

Elite Member
Executive VIP
Jr. VIP
Joined
Mar 22, 2013
Messages
9,146
Reaction score
10,489
So it seems StumbleUpon made a change and I can't get around it to make a command to follow a stumbleupon profile (in .iim, not javascript).

Look at the code below:

Code:
FRAME F=2
TAG POS=1 TYPE=SPAN ATTR=TXT:follow

That worked for the longest time. However, now it seems the "FRAME F=2" changes constantly. The number there changes with every reload of a profile.

I tried using "FRAME F=*" but that didn't work either. Throws an error, stops the iMacro...

So, anyone knows a way to get around this and make the iMacro script click that SUpon follow button?


Thanks
 
Last edited:
i can't seem to replicate the issue, the frame number doesn't change for me, it stays on 1
and this code is working just fine:
HTML:
VERSION BUILD=8920312 RECORDER=FX
TAB T=1
URL GOTO=http://www.stumbleupon.com/stumbler/kkunk05/likes
WAIT SECONDS=6
FRAME F=1
TAG POS=1 TYPE=SPAN ATTR=TXT:follow
you need to wait for the page to fully load though, hence i added the wait seconds, but if you can't seem to capture the follow button, you can try switching the recording mode from the default automatic to x/y position and try that, if you haven't yet

edit: i found something, if you struggle with the changing frames, try to put the asterisk between quotation marks like this:
HTML:
FRAME F="*"
http://forum.imacros.net/viewtopic.php?f=2&t=20869
 
Last edited:
random profile you can experiment on...

i see what you did there. haha
 
random profile you can experiment on...

i see what you did there. haha

No. If someone is kind enough to take their valuable time to look into this for me, I want to make it as easier as possible for them to test. Every minute I save them is a minute less they have to waste helping me out - for free!

But, I knew I may get a reply like this, so... and it's gone... :)
 
Honeybird, I already tried all that.

Basically, the wait seconds I did that in my testing, up to 10 seconds. So the page would fully load and then some, and the iMacro still wouldn't click.

Here's the error I get:

RuntimeError: element SPAN specified by TXT:follow was not found, line 6 (Error code: -921)


I also tried the asterisk with and without quotation marks. Here's the error I get:

BadParameter: expected F=<number> as parameter 1, line 5 (Error code: -911)


I also tried recording with every possible option the iMacro addon offers, with no luck...


I did not try the x/y position recording because I want the script to work universally, even for other people.


For example, I tried recording now twice. First recording game me a Frame of =6, the second a Frame of =7. I'd be willing to bet that that's the problem. It's just how to make the frame respond to that randomization? I tried googling it first, but not much out there about this type of problem. The 2 or 3 threads I found about it were all talking about iMacros in JavaScript, which is not something I do, or know how to do for that matter.
 
Last edited:
Honeybird, brother, I have possibly found the ugliest solution mankind has ever produced. Like, if you look in the dictionary this is what you find in the opposite of elegant :D

Take your seat before proceeding please, for your own good. It's extremely ugly...

Code:
VERSION BUILD=8920312 RECORDER=FX
SET !ERRORIGNORE YES
SET !TIMEOUT_PAGE 2
TAB T=1
REFRESH
WAIT SECONDS=10
FRAME F=1
TAG POS=1 TYPE=SPAN ATTR=TXT:follow
FRAME F=2
TAG POS=1 TYPE=SPAN ATTR=TXT:follow
FRAME F=3
TAG POS=1 TYPE=SPAN ATTR=TXT:follow
FRAME F=4
TAG POS=1 TYPE=SPAN ATTR=TXT:follow
FRAME F=5
TAG POS=1 TYPE=SPAN ATTR=TXT:follow
FRAME F=6
TAG POS=1 TYPE=SPAN ATTR=TXT:follow
FRAME F=7
TAG POS=1 TYPE=SPAN ATTR=TXT:follow
WAIT SECONDS=3

Told you you better be sitting down...

Honeybird ---> :pat:


Now, that works, and fast too, almost instant. However, if I remove the "SET !TIMEOUT_PAGE 2" command the iMacro will get stuck on every "TAG POS=1...." for 5 seconds, which would make my iMacro really slow to do each action. So I'll basically have to increase waiting times on my proper iMacro for StumbleUpon and I'll have to keep in mind that loading times that naturally occur while a page is loading won't occur now and the iMacro will continue working, and compensate for that with an increase in waiting times.


If anyone can wizard up a better way, throw it at me.

:proud:
 
Last edited:
yep, you get that first error message because it's not the right frame and imacros can't find the specified element

ok, i think this should work, try FRAME NAME="*" instead of FRAME F="*"

Code:
VERSION BUILD=8920312 RECORDER=FX
TAB T=1
URL GOTO=http://www.stumbleupon.com/stumbler/kkunk05/likes
WAIT SECONDS=6
FRAME NAME="*"
TAG POS=1 TYPE=SPAN ATTR=TXT:follow

no error came up for me for this one and the macro worked

edit: or you can set errorignore to yes, didn't think about that one now lol
 
yep, you get that first error message because it's not the right frame and imacros can't find the specified element

ok, i think this should work, try FRAME NAME="*" instead of FRAME F="*"

Code:
VERSION BUILD=8920312 RECORDER=FX
TAB T=1
URL GOTO=http://www.stumbleupon.com/stumbler/kkunk05/likes
WAIT SECONDS=6
FRAME NAME="*"
TAG POS=1 TYPE=SPAN ATTR=TXT:follow

no error came up for me for this one and the macro worked

edit: or you can set errorignore to yes, didn't think about that one now lol


Well, that didn't work either. I ran it without the errorignore command in the script, and it did "pass" the Frame Name part, but then on the last part it took 5 seconds, like it couldn't find anything to click on, and then I got this error.

RuntimeError: element SPAN specified by TXT:follow was not found, line 6 (Error code: -921)



Let me try recording that last command with some other recording mode - experimental, full HTML - and see what happens...
 
Nope, nothing will click the button...

Only the ugly code I posted above clicks it...


I wonder how come it's working for you and not working for me though. That doesn't make sense.


Are you using the old or the new StumbleUpon layout?
 
Nope, nothing will click the button...

Only the ugly code I posted above clicks it...


I wonder how come it's working for you and not working for me though. That doesn't make sense.


Are you using the old or the new StumbleUpon layout?
not sure about the layout, i'm not really using stumbleupon, i just have an acc i used with an addmefast bot, but i guess it's the new layout, if it's the default

are you using the imacros FF addon or the standalone browser? i'm using the former, those 2 can act quite differently sometimes and i prefer the addon
 
not sure about the layout, i'm not really using stumbleupon, i just have an acc i used with an addmefast bot, but i guess it's the new layout, if it's the default

are you using the imacros FF addon or the standalone browser? i'm using the former, those 2 can act quite differently sometimes and i prefer the addon

Well, I don't really use Stumbleupon much either, only for social exchange, and the occasional share. Stumbleupon often asks me if I wanna test the new layout, and I always refuse. I'm gonna accept next time it asks me, hopefully make it easier on the new layout to click that damn button.

I'm using the Firefox addon. I have the standalone browser, but I prefer Firefox :)
 
Basically, what I need is a frame that will check through them all until a working frame # can be found.

Like, FRAME F=0,1,2,3,4,5,6,7,8,9,10 for something.

Any idea how to accomplish this?
 
Here it is, this is it, but it's in JS, and I need to do it in iim.

http://stackoverflow.com/questions/14297416/imacro-for-changing-frame



[TD="class: postcell"] "I am trying to record a macro for auto posting on a website but problem is that one text field is changing its frame id every time when the macro tries to post, so it is not possible for me to automate the process."


"you can do it if you run your imacros code from javascript js file - all you need is loop which will go over all possible frame id's until find current one. here is example of the code:"


[/TD]

And that is EXACTLY what I need!
 
Is something like this possible?

To set the vars at the top something like this:
SET !VAR1 EVAL("var min = 1; var max = 1; var randomNumber = Math.floor(Math.random() * (max - min + 1)) + min; randomNumber;")
SET !VAR2 EVAL("var min = 2; var max = 2; var randomNumber = Math.floor(Math.random() * (max - min + 1)) + min; randomNumber;")
SET !VAR3 EVAL("var min = 3; var max = 3; var randomNumber = Math.floor(Math.random() * (max - min + 1)) + min; randomNumber;")
ETC
ETC
ETC.....




And then to maybe set something like FRAME="{{!VAR1}} + {{!VAR2}} + {{!VAR3}} + {{!VAR4}}" for each time FRAME F= is inserted.

???


That would make for a cleaner code for sure than what I've got now, which is roughly this:

SET !ERRORIGNORE YES
SET !TIMEOUT_PAGE 10
TAB T=1
REFRESH
WAIT SECONDS=10
FRAME F=1
TAG POS=1 TYPE=SPAN ATTR=TXT:follow
FRAME F=2
TAG POS=1 TYPE=SPAN ATTR=TXT:follow
FRAME F=3
TAG POS=1 TYPE=SPAN ATTR=TXT:follow
FRAME F=4
TAG POS=1 TYPE=SPAN ATTR=TXT:follow
FRAME F=5
TAG POS=1 TYPE=SPAN ATTR=TXT:follow
FRAME F=6
TAG POS=1 TYPE=SPAN ATTR=TXT:follow
FRAME F=7
TAG POS=1 TYPE=SPAN ATTR=TXT:follow
FRAME F=8
TAG POS=1 TYPE=SPAN ATTR=TXT:follow
WAIT SECONDS=3


That basically makes 16 lines of code for EACH follow, which in order to follow 10 profiles would result in a 160++ lines of code iMacro...
 
Last edited:
You guys should set this to the actual field name instead of referencing the frame in this manner. If you are using firefox, you should go into your recording preferences and mess around with the recording mode for a couple tries. You have multiple options including using X/Y coordinates since this rarely changes with stumbleupon, but you can also set it to get the full field name, etc...

Then simply try recording the new macro with the various setups. Between the information you can extract from the trial runs, you should be able to resolve this issue.
 
You guys should set this to the actual field name instead of referencing the frame in this manner. If you are using firefox, you should go into your recording preferences and mess around with the recording mode for a couple tries. You have multiple options including using X/Y coordinates since this rarely changes with stumbleupon, but you can also set it to get the full field name, etc...

Then simply try recording the new macro with the various setups. Between the information you can extract from the trial runs, you should be able to resolve this issue.

How would I set it to the actual field name instead of referencing the frame?

I tried ALL of the recording modes, and various things using wildcard *, and nothing worked! Nothing clicks the button.

I don't want to use the X/Y coordinates.

Go to any Stumbleupon profile and get the iMacro to click the follow button. The only solution that works for me is the one with multiple frames like I mentioned above.

Thanks
 
Well as I suggested I went to iMacros in firefox, and checked the selectors to record with the following setup:

Conventional Recording Mode
Check The Expert Box -> This Will Use The Complete HTML tag, which appears to be revealed below.

Code:
TAG POS=1 TYPE=SPAN ATTR=CLASS:s-follow

I had no difficulty at all using this and it worked every time I tried it. If you are unsure how to open the options in iMacros for firefox ... you should see a tab in your iMacros window which says "Manage." You can find the section to click to alter recording mode in there.
 
Last edited:
Well as I suggested I went to iMacros in firefox, and checked the selectors to record with the following setup:

Conventional Recording Mode
Check The Expert Box -> This Will Use The Complete HTML tag, which appears to be revealed below.

Code:
TAG POS=1 TYPE=SPAN ATTR=CLASS:s-follow

I had no difficulty at all using this and it worked every time I tried it. If you are unsure how to open the options in iMacros for firefox ... you should see a tab in your iMacros window which says "Manage." You can find the section to click to alter recording mode in there.

Thanks for taking the time to check it out. As I said, I already tried ALL of the recording modes. Nothing works for me except that code that I shared previously. This is not my first iMacro barbecue.

It seems that this option worked for you, the normal default recording option worked for Honeybird as well as another friend of mine. For some reason for me nothing works except the code I shared previously.
 
I recommend you reading into selenium (with phantomjs) + python. Its really great. If you need "some" help PM me your skype name.
 
Back
Top