add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

28
pages.zh/common/pup.md Normal file
View File

@@ -0,0 +1,28 @@
# pup
> 命令行 HTML 解析工具。
> 更多信息:<https://github.com/ericchiang/pup>。
- 将原始 HTML 文件转换为清理过、缩进和着色的格式:
`cat {{index.html}} | pup --color`
- 按元素标签名称过滤 HTML
`cat {{index.html}} | pup '{{tag}}'`
- 按 ID 过滤 HTML
`cat {{index.html}} | pup '{{div#id}}'`
- 按属性值过滤 HTML
`cat {{index.html}} | pup '{{input[type="text"]}}'`
- 打印过滤后的 HTML 元素及其子元素的所有文本:
`cat {{index.html}} | pup '{{div}} text{}'`
- 将 HTML 打印为 JSON
`cat {{index.html}} | pup '{{div}} json{}'`