Jump to content
UBot Underground

Clicking a button on tumblr


Recommended Posts

I may have bitten off more than I can chew for my first bot. What I need to do is click the "Like" button on tumblr pages. The button only appears after you log in, and it's shown inside an iframe. If you load the iframe directly it doesn't show up. So they really don't want you to automate this.

 

I can tell from live http headers in firefox that it's submitting a form, and I know the URL it's submitting to and the data that's going with it. But if I can't click the button I don't think knowing that will do me much good. I could emulate submitting the form in PHP without any problems, but I really want to do this in ubot.

 

Right-clicking the element, ubot doesn't recognize that it's any kind of element at all.

 

I've spent all day learning how to build this bot, and of course this is the last thing I need it to do :) Am I trying the impossible?

Link to post
Share on other sites

I may have bitten off more than I can chew for my first bot. What I need to do is click the "Like" button on tumblr pages. The button only appears after you log in, and it's shown inside an iframe. If you load the iframe directly it doesn't show up. So they really don't want you to automate this.

 

I can tell from live http headers in firefox that it's submitting a form, and I know the URL it's submitting to and the data that's going with it. But if I can't click the button I don't think knowing that will do me much good. I could emulate submitting the form in PHP without any problems, but I really want to do this in ubot.

 

Right-clicking the element, ubot doesn't recognize that it's any kind of element at all.

 

I've spent all day learning how to build this bot, and of course this is the last thing I need it to do :) Am I trying the impossible?

 

 

I signed up for tumblr and I can click the like button with the html tag "INPUT" (the heart symbol next to posts right?) but the problem is that it clicks the like buttons on every post (eeek!)

Apart from that I am not seeing any iframes. Maybe I'm clicking the wrong button?

Link to post
Share on other sites

From what I can see the button on the home page of the blog just goes to the notes section, it doesn't actually "like" anything. You need to go to an individual post to do that: http://soupsoup.tumblr.com/post/1336373061/winter-solstice-on-mars-via-nasa

 

The like button will be in the upper right corner, which is the one I need to click. It loads this URL in an iframe: http://www.tumblr.com/dashboard/iframe?8&src=http%3A%2F%2Fsoupsoup.tumblr.com%2Fpost%2F1336373061%2Fwinter-solstice-on-mars-via-nasa&pid=1336373061&rk=hhVZxaL7&lang=en_US&name=soupsoup

Link to post
Share on other sites

Following up. I looked at the source of the iframe and they have another form for following, that appears to have the same setup as the form for liking would have to have. So I tried just using choose by attribute with the src set to http://assets.tumblr.com/images/iframe_like_alpha.png which is the source of the button image they'd be using. That didn't work so I changed it to use alt with Like since that appears to be the alt text for the image. The bot is still saying no element is chosen when I run the click chosen command.

 

They have this code in the iframe page, so the like buttons have to be controlled there from what I can tell:

 

<body style="background-color:transparent; margin:0px; padding:0px;"
   onload="var image1 = new Image(); image1.src = 'http://assets.tumblr.com/images/iframe_like_alpha.png';
   var image2 = new Image(); image2.src = 'http://assets.tumblr.com/images/iframe_like_active_alpha.png';">

Link to post
Share on other sites

Tumblr....I got banned by them a couple of years back. Are those buttons Flashed based?

 

Nope, I am STILL banned so I cannot check. LOL Stupid site.

 

Gezzzz, I don't hold a grudge this long. lol

Link to post
Share on other sites

this is going to sound odd, but bear with me. Can you take a tiny screen shot of the specific button you are talking about and post it on this thread? I am seeing a lot of "Like" like buttons, and I wanna be sure.

Link to post
Share on other sites

lol I hope I've got the right button,

 

but I was able to navigate into the iframe with this url(found with firefox): http://www.tumblr.com/dashboard/iframe?8&src=http%3A%2F%2Fsoupsoup.tumblr.com%2Fpost%2F1336373061%2Fwinter-solstice-on-mars-via-nasa&pid=1336373061&rk=hhVZxaL7&lang=en_US&name=soupsoup

 

I'm not sure how that will work in terms of automation, because i had to find it through firefox.

Link to post
Share on other sites

Yeah, that's the URL I linked to in my second post :) The iframe is near the bottom of the source. I've just never seen a case where something showed on a page, but I couldn't find the source code that produced it. I had big dreams for that bot, but at least someone who knows what they're doing had problems too. Working on another bot now, so I'll try to come back at it with fresh eyes later.

 

Thanks for trying though.

Link to post
Share on other sites
  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...