如何解析网站?

发布于 2024-08-29 08:17:44 字数 300 浏览 4 评论 0原文

嘿,我想构建一个可以解析网站以获取特定信息的应用程序。具体来说,可以解析 http://www.fedex.com /Tracking?language=english&cntry_code=us&tracknumbers=681780934297262 了解重要信息。有没有我可以使用的教程。

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 tutorial out there I could use.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

┊风居住的梦幻卍 2024-09-05 08:17:44

这篇 Cocoa With Love 文章讨论了解析 XML以及带有 Xcode 提供的 libxml2 库的 HTML,使用 XPath 拉出感兴趣的节点。看一下 PerformHTMLXPathQuery() 函数。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文