【问题标题】:How to exclude a tag from an html file with xidel?如何使用 xidel 从 html 文件中排除标签?
【发布时间】:2017-01-29 09:36:35
【问题描述】:

如何使用xidel从以下文件中提取text1

<html>
<body>
        <div class="class1">
                text1
                <table><tbody>
                <tr>
                    <td>t1tr1td1</td>
                    <td>t1tr1td2</td>
                </tr>
                </tbody></table>
        </div>
</body>
</html>

【问题讨论】:

    标签: html parsing xidel


    【解决方案1】:
    xidel file.html -e "//div/text()"
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-08-12
      • 1970-01-01
      • 2013-11-21
      • 1970-01-01
      • 2018-09-07
      相关资源
      最近更新 更多