【问题标题】:YQL + TABLE + XPATHYQL + 表 + XPATH
【发布时间】:2011-06-27 11:37:00
【问题描述】:

我正在使用 YQL。我了解如何对网页进行简单查询并使用 xpath 选择内容。

例如:select * from html where url="http://www.animeclick.it/manga.php?xtit=Ranmaru+XXX" 和 xpath="/html/body/div/table/tr/td/table/tr/td/div/div/img[contains(@src,'manga')]"。

现在,这种方法存在局限性。我无法登录网站,无法在页面中重复不同的信息(我知道可以进行更多查询或添加新的 xpath 表达式),我无法格式化输出结果

(like inside div this content : 
    "<p> Hello <a src="#"> Boy!</a></p>" ,
    where in this case i need the text "Hello boy")

如何在这个范围内使用 YQL OPEN TABLE!??!

【问题讨论】:

    标签: xpath yql


    【解决方案1】:

    如何在这个范围内使用 YQL OPEN TABLE!??!

    请花时间通读 YQL 文档中的 Creating YQL Open Data Tables 章节。

    特别是,&lt;execute&gt; 块 (docs) 将使您能够执行上述所有操作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-03-05
      • 1970-01-01
      相关资源
      最近更新 更多