我希望我的 Rails 应用程序能够解析外部网站以获取引用 URL,但我不确定是否应该只查找
<a href="url" rel="trackback">Text</a>
或遵循 Sixapart 描述的 RDF 规范。 或两者。 Wordpress 和 Techcrunch 都只提供 rel="trackback" 链接,他们应该知道。 另一方面,也许某些博客只提供 RDF,而我缺少链接。
你怎么认为?
是否有任何现成的 gem/插件(在谷歌上搜索引用真的很难......)
谢谢。
更新
我现在首先尝试查找 RDF 信息。 如果我没有找到任何东西,我会寻找链接标签。 我指的是 Sixapart 规范。 感谢您的帮助。
I want my Rails App to parse external websites for a trackback URL but I'm not really sure if I should just look for a
<a href="url" rel="trackback">Text</a>
or follow the RDF specifications described by sixapart. Or both. Wordpress and Techcrunch both only offer a rel="trackback" link and they should know. On the other hand maybe some blog only provides RDF and I'm missing the link.
What do you think?
And is there any ready gem/plugin out there (it's really hard to google for trackback...)
Thanks.
UPDATE
I'm now first trying to find the RDF information. If I do not find anything, I look for the link tag. I was refering to the sixapart specifications. Thanks for your help.
发布评论
评论(1)
我现在正在检查两者(首先是 RDF,如果不成功则进行链接)。 我指的是 Sixapart 规范。 感谢您的帮助!
I'm checking for both now (first RDF, then link if not successfull). I was refering to the sixapart specifications. Thanks for your help!