We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
我会推荐 Nokogiri gem。它是一个 HTML、XML 等解析器,因此您可以使用它自己解析页面。这种方法的好处是它为您的特定用例提供了最大的灵活性。您可以使用 gem 来解析任何元标记和标头标记,只要您可以使用 XPath 或 CSS3 选择器来表达它们即可。
I would recommend the Nokogiri gem. It is an HTML, XML, etc. parser so you can use it to parse pages on your own. The nice thing about this approach is that it affords you the most flexibility for your specific use case. You can use the gem to parse any meta and header tags as long as you can express them using XPath or CSS3 selectors.
您还可以尝试我构建的这个免费(对于大多数人)Open Graph API:http://www.opengraph.io/< /a>
You can also try this free (for most) Open Graph API that I built: http://www.opengraph.io/