文件名称:tq:通过CSS选择器在HTML输入上执行查找
文件大小:11KB
文件格式:ZIP
更新时间:2024-02-24 14:32:11
python json command-line css-selector command-line-tool
q tq是命令行实用程序,它对传递给标准输入HTML内容执行HTML元素选择。 使用大家都知道的css选择器。 由于输入来自标准输入并将输出发送到标准输出,因此可以轻松地在传统的UNIX管道中使用它,以从网页和html文件中提取内容。 tq提供了额外的格式化选项,例如json编码或换行压缩,因此它可以与每个人最喜欢的命令行工具很好地配合使用。 安装 sudo pip3 install https://github.com/plainas/tq/zipball/stable 用法示例 获得黑客新闻的头条新闻 curl https://news.ycombinator.com/news |
【文件预览】:
tq-master
----.github()
--------workflows()
----tq_bin(74B)
----tqtest.sh(581B)
----.pylintrc(126B)
----doc()
--------tq.1.md(1KB)
--------compile_manpage.sh(206B)
--------tq.1(2KB)
----.travis.yml(142B)
----LICENSE(1KB)
----setup.py(749B)
----README.md(2KB)
----tq()
--------__init__.py(3KB)
----tests()
--------no-selector.html(116B)
--------not-first-of-type.expected-output(4B)
--------not-first-of-type.html(215B)
--------no-selector.args(0B)
--------version.args(9B)
--------version.expected-output(6B)
--------utf8.args(11B)
--------no-selector.expected-output(129B)
--------version.html(1B)
--------utf8.expected-output(4B)
--------utf8.html(183B)
--------not-first-of-type.args(35B)
----.gitignore(69B)
----bin()
--------tq(70B)