News for hackers. Stuff that matters.
Re:Show HN: Pipet – CLI tool for scraping and extracting dat... by yoavm on Wednesday October 02, 2024 @03:30PM (#41724223)
Just as an example: if you have go installed on your laptop, you can extract all the comments from this post as JSON by creating a file with

  curl https://news.ycombinator.com/item?id=41695549
  .comment
    div > div
save it as comments.pipet and run `go run github.com/bjesus/pipet/cmd/pipet@latest --json comments.pipet`. Or run it with `--interval 60 --on-change "notify-send {} "` to periodically check for updates and call notify-send (on Linux) to get a notification when new a comment appears!

There are no comments on this comment yet.