Re: NSString Parsing
Re: NSString Parsing
- Subject: Re: NSString Parsing
- From: Matthew Lehrian <email@hidden>
- Date: Mon, 28 Oct 2002 22:41:03 -0500
Well, I haven't used OWF, but I have used Omnigroup's regular
expression classes and NSScanner extensions in OmniFoundation. These
classes make parsing much easier, if parsing for regular expressions
fits the bill for you.
Matthew
On Monday, October 28, 2002, at 04:05 PM, OS X AIBO wrote:
Though I haven't used it myself, this sounds like a job for Omnigroup's
web framework, if the Omni license fits your needs.
From http://www.omnigroup.com/developer/sourcecode/
"Perhaps the most powerful framework in our entire framework suite,
OWF, otherwise known as the Omni Web Framework, provides an advanced
architecture within which to write multithreaded, internet
applications. OWF is the work horse in OmniWeb controlling all of the
content fetching, HTML/SGML parsing, FTP server manipulation, etc. If
OmniFoundation is the Objective-C programmer's Swiss Army Knife, then
OWF is their double barrel, rotary laser cannon.
Want to write a quick app to fetch stock prices from
www.fakestocksite.com? OWF practically already does it. Need to fetch
and parse a credit report from the credit bureau in your e-commerce
site? Sprinkle in some custom logic and the OWF fairy does the rest. In
the next version we plan on integrating back scratching and toast
making."
--- Peer Allan <email@hidden> wrote:
Hi,
I'm trying to write a basic program that grabs a page from a website
then
"scrapes" through the HTML to get the data I want. Currently, I am
using
initWithContentsOfURL: to get the page into a NSString. So I am
getting the
full page no problem.
What I want to do is extract all the text from in between a pair or
tags
(<td>...</td> for example). I know I could use a rangeOfString: call
to get
the first one, but then I have to create a new string with the
remaining
data and call rangeOfString: again to get the next and on and on
until the
whole string is parsed. I hope there is a better way to do this.
Thanks
Peer
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.