Xq - Command-line XPath Processor For HTML And XML - GitHub
xq
xq is a lightweight command-line XPath processor for HTML and XML.
Usage
Extracting simple content from HTML with XPath:
curl -s https://news.ycombinator.com/ | ./xq "//title" #=> Hacker NewsExtracting content from XML with XPath:
curl -s http://w1.weather.gov/xml/current_obs/KBOS.xml | ./xq "//current_observation/temp_f" # => 59.0A bit more sophisticated XPath from standard input:
cat ./data/wiki_page.html | ./xq "//table[@class='multicol'][7]//a/@href" #=> #... #/wiki/Go_(programming_language) #...Development
go get -u github.com/otobrglez/xq sudo apt-get install libxml2-dev make testDetails
- Project was inspired by jq - Command-line JSON processor
- Project uses gokogiri and libxml2.
License & Author
Oto Brglez - MIT License.
Từ khóa » Xq Github
-
Sibprogrammer/xq: Command Line XML Beautifier And ... - GitHub
-
Xq - Like Jq, But For XML And XPath. - GitHub
-
MiSawa/xq: Pure Rust Implementation Of Jq - GitHub
-
Sbowman/xq - GitHub
-
Xq/ At Master · Sibprogrammer/xq - 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