Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: looking for a function...

From: ingo:2b1 at: 12-Nov-2000 11:15

Hi Donald, well, yes, thought that, too ... _after_ I sent it, and when I dindn't have the time to send a followup ... I originally wanted a stand-alone html-to-text engine, but when I created the browser.r script I got a little distracted. These are the two mainfunctions:
>> help html/read
Valid subpath "html/read" is function: USAGE: OBJ url /html /text /links DESCRIPTION: read url and return the page as ... OBJ is a function value. ARGUMENTS: url -- (Type: url file) REFINEMENTS: /html -- html source /text -- text /links -- link-list 'Read will read a file/url, and return nothing, because I now see that I don't really return the assembled return-value ... it _should_ have been a block containing the string values for /html source /text converted from html /links found in the source
>> help html/to-text
Valid subpath "html/to-text" is function: USAGE: OBJ url html DESCRIPTION: Convert html to text, url is needed for handling of relative urls OBJ is a function value. ARGUMENTS: url -- (Type: url file) html -- (Type: string) 'to-text returns a block containing the converted text, and a block of strings like "cnt http://www.2b1.de/" where cnt is a reference number inserted in the text, where the link has been. (The 'url argument is really only needed to convert relative urls.) I hope that helps kind regards, Ingo Once upon a time Donald Dalley spoketh thus: