How to recover text from a web page

Shadow Slash shadow.slash at yahoo.com
Wed Sep 22 01:27:39 EDT 2010


Hi Walt,

Umm, if I got it right, you simply want to get the source code of that certain page? If that's what you want to do, you can just use the revBrowserGet() function and retrieve its "htmltext" property.

Best regards,
Shedo Surashu
www.ShadowSlash.tk

Connect with me on LinkedIn. (http://ph.linkedin.com/in/shadowslash)


--- On Wed, 22/9/10, Sumner, Walt <WSUMNER at dom.wustl.edu> wrote:

> From: Sumner, Walt <WSUMNER at dom.wustl.edu>
> Subject: How to recover text from a web page
> To: "use-revolution at lists.runrev.com" <use-revolution at lists.runrev.com>
> Date: Wednesday, 22 September, 2010, 5:16 AM
> I am trying to recover text from this
> web page and all of its siblings:
> 
> http://www.thepetitionsite.com/1/keep-life-saving-electronic-cigarettes-available/#sigs/691732733/user/1
> 
> The interesting part of the page is the comments, which do
> not appear in the HTML, but which can be copied manually. I
> can open this page in a browser in LiveCode. With manual
> mouse motions, I can double click a block of text, choose
> "Select All" from the "Edit" menu, choose "Copy" from the
> "Edit" menu, and then paste into a field where the comments
> all appear and are easy to disassemble. 
> 
> Unfortunately, the revbrowser set command and get function
> do not do anything comparable AFAICT. The "Select All"
> choice is not implemented in the DoMenu command. I think
> that printing a pdf is also out. So, any thoughts on how to
> automate this part of a petition review? For instance, maybe
> there is a simple way to save the text to a file with the
> revBrowserExecuteScript function (using JavaScript for
> Safari)?
> 
> BTW, the browser is fully capable of crashing LiveCode on
> at least some OSX machines. Please don't lose any work for
> me.
> 
> Thanks,
> 
> Walt_______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage
> your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 






More information about the use-livecode mailing list