Xq - Like Jq, But For XML And XPath. - GitHub
xq
Apply XPath expressions to XML, like jq does for JSONPath and JSON.
Installation
Install with pip:
pip install xqOr download the repo and install via setuptools:
python setup.py installUsage
Extract download URLs from an RSS feed:
http get 'http://br-rss.jeffbr13.net/rss/channels/1/' | xq '//item/enclosure/@url'Extract all links from an HTML page footer:
http get 'http://br-rss.jeffbr13.net/ | xq '//footer//a/@href'Test
Run unittest in the root directory to autodetect and run tests:
python -m unittestBuild
Increment xq.VERSION and run the following two commands to create a source distribution, create a universal wheel, and upload to PyPI
python setup.py sdist python setup.py bdist_wheel --universal twine upload dist/*See Also
- jq
- hq
Từ khóa » Xq Github
-
Sibprogrammer/xq: Command Line XML Beautifier And ... - GitHub
-
MiSawa/xq: Pure Rust Implementation Of Jq - GitHub
-
Sbowman/xq - GitHub
-
Xq/ At Master · Sibprogrammer/xq - GitHub
-
Xq - Command-line XPath Processor For HTML And XML - GitHub
-
Chanwit/xq: Any Configuration Processor - GitHub
-
Xq · GitHub Topics
-
Luolong/xq: Siple Command Line Utility To Filter XML Content - GitHub
-
Go-xq · GitHub Topics
-
Spali/go-xq: XML Query Utility To Extract Xml From A File, Input ... - GitHub
-
- Command-line XML Processor Inspired By `jq` - GitHub
-
Xq/ At Master · Tfussell/xq - GitHub
-
Kislyuk/yq - Jq Wrapper For YAML/XML/TOML Documents - GitHub
-
Mustache - GitHub