ericchiang/pup
View on GitHub ↗ ★ 8,431 HTML
Parsing HTML at the command line
34 mentions on Hacker News by 27 people: 13 stories, 21 comments · first 2014-09-13 · latest 2024-03-20
20082026
-
here's an alternative I've used in the past: pup https://github.com/ericchiang/pup
comment by thedookmaster · 2024-03-20 · in Htmlq: Like Jq, but for HTML -
…would interesting to have a more detailed comparison to go on (e.g. types of HTML, speed etc). [1] https://github.com/ericchiang/pup [2] https://news.ycombinator.com/item?id=33805732
comment by brigandish · 2022-12-08 · in Show HN: A tool like jq, but for parsing HTML -
It may need an update, but not for installation: go install github.com/ericchiang/pup@latest
comment by JodieBenitez · 2022-11-30 · in Pup: Parsing HTML at the command line -
It looks like the project became inactive for a bit and there are alternatives such as htmlq, etc. https://github.com/ericchiang/pup/issues/150
comment by bijoo · 2022-11-30 · in Pup: Parsing HTML at the command line -
Shoutout to my go-to: https://github.com/EricChiang/pup#readme (also golang) and my 2nd favorite https://xmlstar.sourceforge.net/
comment by mdaniel · 2022-11-12 · in Show HN: Xq – command-line XML and HTML beautifier and content extractor -
…cup of tea. You get best of both worlds: faster dev work with Bash utils, and a saner syntax. [1]: https://github.com/ericchiang/pup [2]: https://csvkit.readthedocs.io/en/latest/ [3]: https://stedolan.github.io/jq/ [4]:…
comment by shubhamjain · 2022-08-10 · in Ask HN: What are the best tools for web scraping in 2022? -
Consider pup https://github.com/EricChiang/pup
comment by ducktective · 2022-05-15 · in Web Scraping with Python -
I use pup for this. People who tried both, any difference? https://github.com/EricChiang/pup
comment by ducktective · 2022-04-13 · in New(ish) command line tools -
It's not novel obviously. I have been using pup[1] for years. And xidel[2] is probably older. [1] https://github.com/ericchiang/pup [2] https://github.com/benibela/xidel
comment by natrys · 2021-09-07 · in Htmlq: like jq, but for html -
Looks nice! Any comparisons with pup? https://github.com/ericchiang/pup
comment by ducktective · 2021-09-07 · in Htmlq: like jq, but for html -
…and pup seem closer to grep for html. They can essentially only select data from a html source. [0] https://github.com/EricChiang/pup [1] https://github.com/suntong/cascadia
comment by gizdan · 2021-09-07 · in Htmlq: like jq, but for html -
Hadn’t seen pup before... nice https://github.com/EricChiang/pup
comment by rovr138 · 2020-09-22 · in Domains for the Rest of Us -
…pup is super handy for doing quick html selections: https://formulae.brew.sh/formula/pup#default => https://github.com/EricChiang/pup#readme
comment by mdaniel · 2020-08-07 · in Crush: A command line shell that is also a powerful modern programming language -
FWIW, I already have a command line tool that can do that installed in regular Unix: https://github.com/ericchiang/pup The docs even use the same example of scraping HN. How does Invoke-WebRequest decide if it’s looking at HTML or…
comment by earthboundkid · 2020-04-24 · in Two Months with Powershell on a Unix -
…from the CL like before), I found I quickly needed to be able to chain them together etc. pup ( https://github.com/ericchiang/pup/blob/master/README.md ) which apparently inspired xpup does seem to have this, e.g. chaining, but…
comment by hyperpallium · 2018-05-09 · in Ask HN: What are your favorite terminal programs? -
For simple tasks, curl into pup is very convenient. https://github.com/ericchiang/pup
comment by kbd · 2017-11-14 · in Ask HN: What are best tools for web scraping? -
Pup deserves a mention too. https://github.com/ericchiang/pup
comment by jasonm23 · 2017-10-08 · in Show HN: A simple, fast and user-friendly alternative to find, written in Rust -
…from an HTML page. Written in Go too, so easy to deploy. That one's going in my toolchest. [1]: https://github.com/ericchiang/pup
comment by aktau · 2017-05-22 · in Linux utils that you might not know -
Check out pup for parsing HTML. https://github.com/ericchiang/pup pup uses CSS selectors to select elements from HTML documents. Used in conjunction with curl, it gives you a very simple and low friction way to scrape data in scripts.
comment by GhotiFish · 2016-05-08 · in A list of command line tools for manipulating structured text data -
Try a combination of Curl/wget/httrack with Pup ( https://github.com/ericchiang/pup/ )
comment by Immortalin · 2015-04-08 · in I'll Accept Anything – Accepting every pull request submitted -
…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. Why does everything nowadays have to come with its own package manager? I like the…
comment by aw3c2 · 2014-09-13 · in Show HN: Pup – A command-line HTML parser