From 9a7852aef6c8f3baa43deeb24500a775c482375a Mon Sep 17 00:00:00 2001 From: Pedro Date: Mon, 30 Nov 2015 03:52:12 +0100 Subject: [PATCH] added examples snippet to readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2972939..e87f575 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ tq is command line utility that performs performs an HTML element selection on Since input comes from stdin and output is sent to stout. It can easily be be used inside traditional UNIX pipelines to extract content from webpages and html files. -tq provides extra formating options such as json-encoding or newlines squashing, so it can pley nicely with everyones favourite command line tooling. +tq provides extra formating options such as json-encoding or newlines squashing, so it can play nicely with everyones favourite command line tooling. ## Instalation @@ -24,7 +24,7 @@ Get the title of an html document stored in a file Get all the images from a webpage - TODO: add this example + curl -s 'http://example.com/' | tq "img" -a src | wget -i Notice that tq doesn't provide a way to make http requests or read files. You can use your favorite HTTP client, or provide the html source from any source you want.