Skip to content
No description, website, or topics provided.
Rust
Branch: master
Clone or download
Latest commit 79157dd Sep 12, 2019

README.md

htmlq - a simple rough and ready command-line HTML processor

Examples

$ http "https://tomafro.net" | htmlq "header a"
<a href="/">Tom Ward</a>
<a href="/projects">projects</a>
<a href="/links">links</a>
<a href="https://twitter.com/tomafro"><i class="fab fa-twitter-square"></i></a>
<a href="https://github.com/tomafro"><i class="fab fa-github-square"></i></a>
$ http "https://tomafro.net" | htmlq --output text "header a"
Tom Ward
projects
links

$ http "https://tomafro.net" | htmlq --output inner "header a"
Tom Ward
projects
links
<i class="fab fa-twitter-square"></i>
<i class="fab fa-github-square"></i>

Motivation

  • To get more experience writing rust
  • To add some simple checks to my static site https://tomafro.net
You can’t perform that action at this time.