xidel

Download and extract data from HTML/XML pages as well as JSON APIs.
More information.
xidel {https://www.google.com/search?q=test} --extract "//a/extract(@href, 'url[?]q=([^&]+)&', 1)[. != '']"
xidel {https://www.google.com/search?q=test} --follow "{//a/extract(@href, 'url[?]q=([^&]+)&', 1)[. != '']}" --extract {//title} --download {'{$host}/'}
xidel {https://example.org} --follow {//a} --extract {//title}
xidel {https://example.org} --follow "{css('a')}" --css {title}
xidel {https://example.org} --follow "{{.}*}" --extract "{{.}}"
xidel {path/to/example.xml} --extract "{ood{.}}"
xidel {http://stackoverflow.com/feeds} --extract "{{title:=.}{uri:=@href}+}"
xidel {https://reddit.com} --follow "{form(css('form.login-form')[1], {'user': '$your_username', 'passwd': '$your_password'})}" --extract "{css('#mail')/@title}"
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).
CC-BY