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: 19 days ago
JSON representation
Finally, a commandline xpath tool for linux that is easy to use.
- Host: GitHub
- URL: https://github.com/charmparticle/xpe
- Owner: charmparticle
- License: bsd-3-clause
- Created: 2021-01-23T05:56:21.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-05-12T00:32:38.000Z (12 months ago)
- Last Synced: 2025-11-29T01:25:49.371Z (5 months ago)
- Topics: commandline, commandline-tool, linux, xpath, xpath-expression, xpaths
- Language: Python
- Homepage:
- Size: 23.4 KB
- Stars: 29
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-tools - charmparticle/xpe - Finally, a commandline xpath tool for linux that is easy to use. (Command Line / Like jq)
- awesome-cli-apps-in-a-csv - xpe - A command-line xpath tool that is easy to use. (<a name="webdev"></a>Web development)
- awesome-cli-apps - xpe - A command-line xpath tool that is easy to use. (<a name="webdev"></a>Web development)
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
**Lately, I've been using xidel instead because it is faster. I created a gist for how to get xidel to act like xpe**
https://gist.github.com/charmparticle/3253f75880d8daf546e5fb2dd4437213