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

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
alex298
Posts: 101
Joined: Mon May 01, 2006 1:17 pm

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

Post by alex298 » Thu Jun 07, 2007 3:22 am

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
Alex
Nice to meet all of you.

xApple
Posts: 113
Joined: Wed Nov 29, 2006 10:21 pm

Post by xApple » Thu Jun 07, 2007 8:33 am

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 ?

alex298
Posts: 101
Joined: Mon May 01, 2006 1:17 pm

Post by alex298 » Thu Jun 07, 2007 2:59 pm

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
Alex
Nice to meet all of you.

Mark Smith
Posts: 179
Joined: Sat Apr 08, 2006 11:08 pm
Contact:

Post by Mark Smith » Fri Jun 08, 2007 8:09 am

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

alex298
Posts: 101
Joined: Mon May 01, 2006 1:17 pm

Post by alex298 » Fri Jun 08, 2007 10:12 am

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
Alex
Nice to meet all of you.

xApple
Posts: 113
Joined: Wed Nov 29, 2006 10:21 pm

Post by xApple » Fri Jun 08, 2007 6:24 pm

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

jsburnett
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 121
Joined: Fri Mar 09, 2007 9:47 pm

Capturing information from a webpage

Post by jsburnett » Fri Nov 07, 2008 8:22 pm

Hi,
I am looking for the same thing. Did this work?

Ant
Posts: 7
Joined: Mon Mar 09, 2009 8:57 pm

Post by Ant » Mon Mar 09, 2009 9:03 pm

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

Post Reply