Re: CSV.ss and extracting all links from a web page
Noel Welsh <noelwelsh-/[email protected]>
| Newsgroups | gmane.lisp.scheme.plt.schematics |
|---|---|
| Message-ID | <[email protected]> |
--- Gordon Weakliem <[email protected]> wrote: > So this was standalone? Yeah. It was part of a little library I developed around the same time I wrote the schemathics stuff. I had to create and chew over large quantities of textual data. > Would it be a problem if I updated it to be v206 > compatible and checked that in? Of course not. The code is quite hokey. These days I'd probably use the parser-tools to write a simple parser for csv data. BTW the code in src/libs/html/link.ss contains a parser for extracting all links from a web page. It works directly on an input port. It should be a bit faster than the htmlprag / match route mentioned in the cookbook. Another alternative to the cookbook recipe is to use sxpath. I'm pretty bad at writing sxpath expressions but I'm sure one could be written to extract all a tags with hrefs. Guess I should put these into the cookbook! Noel ===== Email: noelwelsh <at> yahoo <dot> com Jabber: noelw <at> jabber <dot> org __________________________________ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover ------------------------------------------------------- This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek For a limited time only, get FREE Ground shipping on all orders of $35 or more. Hurry up and shop folks, this offer expires April 30th! http://www.thinkgeek.com/freeshipping/?cpg=12297