Skip to content

bash tool for query xml with xpath and turn results into json

Notifications You must be signed in to change notification settings

Abioy/xpath-go-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Help

Usage:

xpath-go <PATH> <TARGET>

Query html from stdin via xpath expression and output in json.

Arguments:

<PATH> : expression to match.
<TARGET> : raw json string of key/value pairs. value should be relative path expression from leaf node matched above.

Examples:

    cat test.html | xpath-go "//div[@class=\"seckill-timer\"]\" "{\"id\":\"./@id\"}"

About

bash tool for query xml with xpath and turn results into json

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages