I put this similar project[0] together a while ago. Almost the same concept, but I skipped the json layer altogether as I just wanted a quick way of getting nuggets of content from webpages into my terminal.
For example:
curl https://news.ycombinator.com/news | tq -tj ".title a"
0.
https://github.com/plainas/tq