如何从模式标记验证器中下载提取的数据

发布于 2025-02-11 05:56:51 字数 359 浏览 2 评论 0 原文

我想从沃尔玛或Target等一些电子商务网站爬网并收集有关产品及其价格的信息,我发现使用 Google富裕结果测试以像价格一样提取结构性数据,说明等要比搜索使用XPATH等搜索HTML中的属性更容易。但是,我不知道如何下载提取的数据,以便我可以将其集成到Java代码中。 或者更好的是,有什么办法可以在这些模式测试工具的帮助下在Java中对其进行编程?

I want to crawl and collect information about products and their prices from some e-commerce websites like Walmart or Target, and I found using Schema Markup Validator or Google's Rich Result Test to extract structured data like price, description, etc would be easier than searching for attributes in HTML with xpath etc. However I don't know how to download the extracted data so that I can integrate it in my Java code.
Or better, is there any way I can program this in Java with the help of these schema testing tools?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文