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. ▲ 185
    Pup: Parsing HTML at the command line
    story by tosh · 2022-11-30 · 39 comments
  6. Shoutout to my go-to: https://github.com/EricChiang/pup#readme (also golang) and my 2nd favorite https://xmlstar.sourceforge.net/
  7. …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]:…
  8. Consider pup https://github.com/EricChiang/pup
    comment by ducktective · 2022-05-15 · in Web Scraping with Python
  9. ▲ 2
    pup: Parsing HTML at the Command Line
    story by ducktective · 2022-04-28 · 0 comments
  10. 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
  11. ▲ 1
    Pup: Parsing HTML at the Command Line
    story by ducktective · 2021-09-08 · 0 comments
  12. 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
  13. Looks nice! Any comparisons with pup? https://github.com/ericchiang/pup
    comment by ducktective · 2021-09-07 · in Htmlq: like jq, but for html
  14. …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
  15. ▲ 1
    Pup: Parsing HTML at the Command Line
    story by ducktective · 2021-07-13 · 0 comments
  16. ▲ 1
    Parse HTML at the Command Line with CSS Selectors
    story by redler · 2021-03-23 · 0 comments
  17. ▲ 2
    Pup: A CLI utility to parse HTML (written in Go)
    story by ducktective · 2021-02-23 · 0 comments
  18. ▲ 3
    Pup – Like Jq, but for HTML
    story by rahimnathwani · 2020-10-16 · 2 comments
  19. ▲ 1
    Pup, command line tool for processing HTML
    story by throwaway888abc · 2020-09-28 · 0 comments
  20. Hadn’t seen pup before... nice https://github.com/EricChiang/pup
    comment by rovr138 · 2020-09-22 · in Domains for the Rest of Us
  21. …pup is super handy for doing quick html selections: https://formulae.brew.sh/formula/pup#default => https://github.com/EricChiang/pup#readme
  22. 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
  23. ▲ 3
    Pup: command line tool for processing HTML
    story by ingve · 2018-08-22 · 0 comments
  24. ▲ 2
    Pup: Parsing HTML at the command line
    story by josephscott · 2018-06-08 · 0 comments
  25. …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…
  26. For simple tasks, curl into pup is very convenient. https://github.com/ericchiang/pup
  27. Pup deserves a mention too. https://github.com/ericchiang/pup
  28. ▲ 3
    Parsing HTML at the command line
    story by zeapo · 2017-09-20 · 0 comments
  29. …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
  30. ▲ 1
    Pup – jq inspired HTML command line processor
    story by devy · 2016-07-22 · 0 comments
  31. 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.
  32. Try a combination of Curl/wget/httrack with Pup ( https://github.com/ericchiang/pup/ )
  33. …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…
  34. ▲ 126
    Show HN: Pup – A command-line HTML parser
    story by ericchiang · 2014-09-13 · 27 comments