log.nikhil.io

  • About
  • Archive
  • Feed

pup is a delightful little command-line utility that lets you parse HTML

Think jq but for HTML/DOM. If you wanted to get all the post titles on this log,

 curl -s -o - https://log.nikhil.io/ | gunzip - | pup "header > h2 > a" text{}

Lovely stuff.

Tagged:

  • cli
  • golang
  • sysadmin
  • unix
  • utilities
  • web development
Posted 27th May 2022