ericchiang/pup hiện có 8.4k sao trên GitHub, viết chủ yếu bằng HTML. Parsing HTML at the command line
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
pup is a command line tool for processing HTML. It reads from stdin,
prints to stdout, and allows the user to filter parts of the page using
CSS selectors.
Inspired by jq, pup aims to be a
fast and flexible way of exploring HTML from the terminal.
Install
Direct downloads are available through the releases page.
If you have Go installed on your computer just run go get.
go get github.com/ericchiang/pup
If you're on OS X, use Homebrew to install (no Go required).
Non-HTML selectors which effect the output type are implemented as functions
which can be provided as a final argument.
text{}
Print all text from selected nodes and children in depth first order.
$ cat robots.html | pup '.mw-headline text{}'
History
About the standard
Disadvantages
Alternatives
Examples
Nonstandard extensions
Crawl-delay directive
Allow directive
Sitemap
Host
Universal "*" match
Meta tags and headers
See also
References
External links
attr{attrkey}
Print the values of all attributes with a given key from all selected nodes.
$ cat robots.html | pup '.catlinks div attr{id}'
mw-normal-catlinks
mw-hidden-catlinks
json{}
Print HTML as JSON.
$ cat robots.html | pup 'div#p-namespaces a'
<a href="/wiki/Robots_exclusion_standard" title="View the content page [c]" accesskey="c">
Article
</a>
<a href="/wiki/Talk:Robots_exclusion_standard" title="Discussion about the content page [t]" accesskey="t">
Talk
</a>
Because there is no universal standard for converting HTML/XML to JSON, a
method has been chosen which hopefully fits. The goal is simply to get the
output of pup into a more consumable format.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/ericchiang/pup là nguồn chính thức.
ericchiang/pup có phải mã nguồn mở không?
Có — ericchiang/pup phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/ericchiang/pup.
ericchiang/pup có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho ericchiang/pup. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
ericchiang/pup có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho ericchiang/pup. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
ericchiang/pup còn đang phát triển không?
Commit gần nhất trên ericchiang/pup là 2.3 năm trước (theo timestamp GitHub). Repo có 262 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
ericchiang/pup dùng license gì?
ericchiang/pup phát hành theo license MIT. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về pup?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về pup.