开发者

How To Parse A Website?

Hey I would like to build an app that could parse a website in order to get specific information. Specifically something that can parse http://www.fedex.com/Tracking?language=english&cntry_code=us&tracknumbers=681780934297262 for the important information. Is there a tutor开发者_如何转开发ial out there I could use.


This Cocoa With Love article discusses parsing XML and HTML with the libxml2 library that is available with Xcode, using XPath to pull out the node(s) of interest. Take a look at the PerformHTMLXPathQuery() function.


Try this tool: http://code.google.com/p/sitescraper/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜