【问题标题】:How to retrieve the head of a html document using YQL?如何使用 YQL 检索 html 文档的头部?
【发布时间】:2010-02-26 09:52:31
【问题描述】:

我很好奇这是否可能,因为“select * from html”查询只返回文档的正文。

【问题讨论】:

    标签: yql html-head


    【解决方案1】:

    终于找到答案了。 (编辑:感谢 YQL 论坛上的 Salathe!)

    select * from html where url="http://stackoverflow.com" and xpath='/html/head/title'
    

    【讨论】:

      猜你喜欢
      • 2021-06-23
      • 2010-11-13
      • 2011-12-22
      • 2013-03-01
      • 1970-01-01
      • 1970-01-01
      • 2012-12-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多