Hacker GitHub

← All repos

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

Mentions per year 34 mentions · busiest year 2022 (9)
20082026
  1. 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
  2. …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
  3. 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
  4. 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
  5. Shoutout to my go-to: https://github.com/EricChiang/pup#readme (also golang) and my 2nd favorite https://xmlstar.sourceforge.net/
  6. …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]:…
  7. Consider pup https://github.com/EricChiang/pup
    comment by ducktective · 2022-05-15 · in Web Scraping with Python
  8. 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
  9. 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
  10. Looks nice! Any comparisons with pup? https://github.com/ericchiang/pup
    comment by ducktective · 2021-09-07 · in Htmlq: like jq, but for html
  11. …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
  12. Hadn’t seen pup before... nice https://github.com/EricChiang/pup
    comment by rovr138 · 2020-09-22 · in Domains for the Rest of Us
  13. …pup is super handy for doing quick html selections: https://formulae.brew.sh/formula/pup#default => https://github.com/EricChiang/pup#readme
  14. 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
  15. …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…
  16. For simple tasks, curl into pup is very convenient. https://github.com/ericchiang/pup
  17. Pup deserves a mention too. https://github.com/ericchiang/pup
  18. …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
  19. 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.
  20. Try a combination of Curl/wget/httrack with Pup ( https://github.com/ericchiang/pup/ )
  21. …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…