Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/charmparticle/xpe

Finally, a commandline xpath tool for linux that is easy to use.
https://github.com/charmparticle/xpe

commandline commandline-tool linux xpath xpath-expression xpaths

Last synced: 18 days ago
JSON representation

Finally, a commandline xpath tool for linux that is easy to use.

Awesome Lists containing this project

README

        

# xpe

*Finally, a commandline xpath tool that is easy to use.*

***What is this?***

xpe is a commandline xpath parser. Pipe in some textual data, supply it with an xpath expression, and it will dump the result to stdout. Perfect for shellscripting. For example:

curl -s example.com | xpe "//h1/text()"

Example Domain

Alternatively, xpe can query a file for xpath expressions like so:

xpe '//a/@href' somefile.htm

The order doesn't matter, so the following is also valid:

xpe somefile.htm '//a/@href'

***How to install***

sudo pip3 install xpe

***How to upgrade***

sudo pip3 install -U xpe