html-query icon indicating copy to clipboard operation
html-query copied to clipboard

More examples

Open grimnight opened this issue 2 years ago • 0 comments

It would be helpful to have more examples.

I have been trying to get the following to work:

curl -s https://news.ycombinator.com/ | hq '{posts: .athing | [{url: .titleline > a | @(href), title: .titleline > a, comments: .age > a | @(href) }]}' | jq '.'

But lacking examples I haven't been able to get it to work yet.

grimnight avatar Mar 13 '23 17:03 grimnight