Pup
Dev tools
command-line html parser
SHOW HN2014
How HN took it
10 positive, 3 neutral or asking, 1 mixed, 0 critical, out of 14 comments about the project. Thread score +0.54.
Idea: 6 for, 0 againstPerformance: 1 for, 0 againstExecution: 1 for, 0 against
The thread, comment by comment
Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.
positive neutral or mixed critical about another commenter or something else the maker
What HN said
What people liked
Useful companion to pipes and tools like httpie and jq
From 3 comments
Happy to see this. Pup will be a nice companion to HTTPie[1] as it also works with standard streams: ``` $ http example.org | pup h1 text{} | http httpbin.org/post ``` [1]…
jkbr on HNI agree that jq is a must, along with httpie, and now pup. Thanksfully, jq is now in all distros I've tried (except Arch Linux), I think httpie is as well, so, let's hope same…
kolev on HNcat and pup play well together.
mholt on HN
Good examples and pretty-printing
From 2 comments
"I bet it's node or ruby..." Sees .go file extension. "Oh nice, I never used a Go program before!" But then I am supposed to '$ go get github.com/ericchiang/pup' to install it.…
aw3c2 on HNI agree with your sentiment, but because pup knows CSS selectors and understands the page hierarchy, this will blow the doors off of any line-oriented tool. I'm also stoked about…
mdaniel on HN
Windows build provided
From 1 comment
Looks great! Thank you so much for making a Windows build.
WorldWideWayne on HN
Objections
Install via go get is unfamiliar; binaries in dist not mentioned in readme
From 1 comment
"I bet it's node or ruby..." Sees .go file extension. "Oh nice, I never used a Go program before!" But then I am supposed to '$ go get github.com/ericchiang/pup' to install it.…
aw3c2 on HN
Requests
Support pseudo-selectors such as :last-child
From 1 comment
Is there any way to use pseudo-selectors, like :last-child?
illesim on HN
Questions
How is it different from using a Ruby or Python REPL with Nokogiri?
From 1 comment
Wait, what's the difference between this and using a Ruby/Python/etc REPL? In other words, normally to achieve this same result I would do: irb -> require 'Nokogiri' and require…
mbesto on HN
Alternatives named
w3 html-xml-utils
From 1 comment
Also see w3's html-xml-utils. For example hxextract: http://www.w3.org/Tools/HTML-XML-utils/man1/hxextract.html
grannyg00se on HN
Nokogiri command-line tool
From 1 comment
Nokogiri comes with a command-line tool for just that purpose: https://github.com/sparklemotion/nokogiri/blob/master/bin/nokogiri Example: nokogiri https://news.ycombinator.com…
dashesyan on HN
goquery
From 1 comment
Did you know of goquery (github.com/PuerkitoBio/goquery) ?
Gys on HN