jq (https://github.com/stedolan/jq) is a powerful command line json parser. I see that surgeon provides a similar function for html. I am aware that there are a few html command line parsers inspired by jq, for example pup (https://github.com/ericchiang/pup), but from what I can see they are less powerful than surgeon. My suggestion is to add a command line interface to surgeon.
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be resolved. The issue was opened by ts709 and has received 1 comments.