HTML 内容解析工具 pup

码农软件 · 软件分类 · HTML解析器 · 2019-04-02 19:27:16

软件介绍

pup 是一个命令行的 HTML 内容解析工具,直接从 stdin 读入内容,并将解析结果输出到 stdout,用户可以使用 CSS 选择器进行内容的过滤。

基本使用方法:

$ cat index.html | pup [selectors and flags]

$ pup < index.html [selectors and flags]

$ curl http://www.pro-football-reference.com/years/2013/games.htm | \
pup table#games a[href*=boxscores] attr{href}

$ pup < robots.html title
<title>
 Robots exclusion standard - Wikipedia, the free encyclopedia
</title>

$ pup < robots.html span#See_also
<span class="mw-headline" id="See_also">
 See also
</span>

本文地址:https://codercto.com/soft/d/2721.html

进化

进化

北大首届互联网CIO-CTO班全体同学 著 / 人民邮电出版社 / 2014-10 / 39

精彩视频:http://v.youku.com/v_show/id_XNzkyNzAyNDA0.html 京东购买链接:http://item.jd.com/11549275.html 互动出版网购买链接:http://product.china-pub.com/4352423 互联网是一个年轻的行业,同时也是一个推陈出新、不断进化的行业。 本书是北京大学首届互联网CIO-......一起来看看 《进化》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

MD5 加密
MD5 加密

MD5 加密工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具