Jump to content
UBot Underground

Twitter Iframe


Recommended Posts

There's a button to connect a Twitter account to an online profile. I set Ubot to click on the button, but when the iframe appears, there's nothing in it. The link of the iframe source has aunique for each click. A unique token is created when the button is clicked. Is there any way to scrape the link and navigate to it?

Edited by youbot
Link to post
Share on other sites

 

 

Thanks. I've tried to scrape the URL of the iframe but I am having trouble because the page has multiple frames. Here's the site:

 

http://www.mycokerewards.com/beta/account/authenticate

 

Looks like the url is generated by javascript. The iframe appears in Ubot when you click on the Twitter button.

Edited by youbot
Link to post
Share on other sites

You just need to be a bit creative...

 

Here is the code:

navigate("http://www.mycokerewards.com/beta/account/authenticate", "Wait")
wait for element(<id="twitter-sign-in">, "", "Appear")
click(<id="twitter-sign-in">, "Left Click", "No")
wait for element(<src=w"*provider_name=twitter*">, "", "Appear")
navigate($scrape attribute(<src=w"*provider_name=twitter*">, "src"), "Wait")

Link to post
Share on other sites

 

You just need to be a bit creative...

 

Here is the code:

navigate("http://www.mycokerewards.com/beta/account/authenticate", "Wait")
wait for element(<id="twitter-sign-in">, "", "Appear")
click(<id="twitter-sign-in">, "Left Click", "No")
wait for element(<src=w"*provider_name=twitter*">, "", "Appear")
navigate($scrape attribute(<src=w"*provider_name=twitter*">, "src"), "Wait")

 

Ah such a simple solution but it works so well. Thanks.

Link to post
Share on other sites

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...