💾 Archived View for freeshell.de › tldr › xidel.gmi captured on 2022-06-12 at 00:02:11. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-04-28)

-=-=-=-=-=-=-

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 "{<a>{.}</a>*}" --extract "{<title>{.}</title>}"
xidel {path/to/example.xml} --extract "{<x><foo>ood</foo><bar>{.}</bar></x>}"
xidel {http://stackoverflow.com/feeds} --extract "{<entry><title>{title:=.}</title><link>{uri:=@href}</link></entry>+}"
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