Jump to content
UBot Underground

Loading an iframe called by a javascript


Recommended Posts

There is a javascript in the web page i want to scrape. This javascript loads an HTML file in an IFrame. I want to access the HTML in this IFrame which is dynamically created by the javascript, and scrape the content in it.

 

How to do this with ubot?? Any suggestions.

 

Thank you all

Link to post
Share on other sites

There is a javascript in the web page i want to scrape. This javascript loads an HTML file in an IFrame. I want to access the HTML in this IFrame which is dynamically created by the javascript, and scrape the content in it.

 

How to do this with ubot?? Any suggestions.

 

Thank you all

 

Find the url of the iframe and then navigate to it directly.

Link to post
Share on other sites

The url of the iframe is dynamically created by the javascript. That's what i need to take.

 

Then you'll probably have to reverse engineer which ever code creates the url - and create your own url before navigating to it.

Link to post
Share on other sites

Then you'll probably have to reverse engineer which ever code creates the url - and create your own url before navigating to it.

 

How can i call run the javascript.js on the page which creates the iframe and get the output/variables of it to a variable?

Link to post
Share on other sites

How can i call run the javascript.js on the page which creates the iframe and get the output/variables of it to a variable?

 

If the page is loading and displaying the iframe - then the url has been generated. The only thing you need to work out is what javascript variable(s) are being used to build it.

 

You can then do something like:

 

set variable = eval (javascript variable(s));

 

If you don't know javascript (and even if you do if the coder has tried to obscure it) - it's going to be fairly tricky to work out what's going on. If you post the page - I may be able take a quick look.

 

You may even be able to get the url of the iframe via javascript directly (the src property is probably the one to go for):

 

http://www.devarticles.com/c/a/JavaScript/Working-with-IFRAME-in-JavaScript/1/

 

should be enough to get you going though.

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