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/
精彩评论