Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

License

NotificationsYou must be signed in to change notification settings

charmparticle/xpe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp