Page 1 of 1

How to "Select All->Copy->Paste" a webpage?

Posted: Thu Jun 07, 2007 3:22 am
by alex298
Hi,

I need to extract some data from a webpage. However the webpage is using some trick so that the souce code contain almost nothing at all.

Therefore the only way to get the content of the webpage is to "Select All -> Copy Text -> Paste".

Is it possible to achieve the "Select all -> Copy Text -> Paste" with RR?

Thanks and best regards

Posted: Thu Jun 07, 2007 8:33 am
by xApple
What OS are you using ?
And what is the webpage in question ?
Maybe we can find a better way to do what you want... And what is the goal of your project, by the way; why are you importing stuff from a website ?

Posted: Thu Jun 07, 2007 2:59 pm
by alex298
Hi,

Thanks for your reply. I am using Windows XP.

The webpage is a "Stock Ask/Bid Page", a secure login page. I am just trying to make an alert (or alarm) when the stock price reach a target price.

The source of the page has only a few lines of codes, but not related with the content of the page.

Thanks and best regards

Posted: Fri Jun 08, 2007 8:09 am
by Mark Smith
Have you looked at the new (in 2.8.1) browser control? I think you may be able to set up a revBrowser, go the page you want, and grab the text of that page.

I haven't tried this, myself, but I think it's possible.

Best,

Mark

Posted: Fri Jun 08, 2007 10:12 am
by alex298
Hi,

Yes. I am using revBrowser.

For a normal webpage, I can grab the contents easily. My problem are:

1. The source of this webpage is empty. Therefore I cannot get the contents.

2. The webpage has only one URL. No matter what stock numbers I enter in the search box, the URL remains unchange. Therefore I cannot grab the content by the URL.

The only possible way is to "Edit -> Select All -> Copy -> Paste" the webpage to get the content.

Thanks and best regards

Posted: Fri Jun 08, 2007 6:24 pm
by xApple
Can you give us the URL of the website so we can see ?
If you really just need to simulate the actions of copy and paste, you can use the "copy" and "paste" commands.
For Select All, just use "doMenu".

Capturing information from a webpage

Posted: Fri Nov 07, 2008 8:22 pm
by jsburnett
Hi,
I am looking for the same thing. Did this work?

Posted: Mon Mar 09, 2009 9:03 pm
by Ant
The reason you cannot see the source code, (to me this seems like the reason), is because the site is using an iFrame.

Check the source code for anything that has anything like..

Code: Select all

<iframe src ="http://website.com">
  
</iframe>
Something like the above.

Then go to the url that is in src. Then the source will be visible at that url.
Hope this is correct, and hope this works.

@Ant