/xpd

A simple xpath command line tool.

Primary LanguageGoMIT LicenseMIT

xpd

A simple xpath tool using golang xpath library.

Install

go get -u github.com/angela0/xpd

Usage

xpd <selector> [filename]

For example:

xpd '//title' index.html

Arg filename is optional, and xpd will read data from stdin if not provided.

For example:

less index.html | xpd '//title'
# or
xpd '//title' < index.html

Licence

MIT

Some codes are from htmlquery protected by MIT.