diff --git a/README.md b/README.md index b151d53..e67283d 100644 --- a/README.md +++ b/README.md @@ -22,14 +22,13 @@ Or if you can run `go get` to download via git. ## Quick start ```bash -$ curl http://www.pro-football-reference.com/years/2013/games.htm +$ curl -s https://news.ycombinator.com/ ``` Ew, HTML. Let's run that through some pup selectors: ```bash -$ curl http://www.pro-football-reference.com/years/2013/games.htm | \ -pup table#games 'a[href*=boxscores]' attr{href} +$ curl -s https://news.ycombinator.com/ | pup 'td.title a[href^=http] attr{href}' ``` ## Basic Usage @@ -159,25 +158,6 @@ $ pup < robots.html a slice{:3} ``` -The `by` indexer works particularly well with tables. - -```bash -$ curl -s http://www.pro-football-reference.com/boxscores/201402020den.htm | \ -pup table#linescore td slice{::6} - - - Seattle Seahawks - - (13-3-0) - - - - Denver Broncos - - (13-3-0) - -``` - ## Implemented Selectors For further examples of these selectors head over to [w3schools]( diff --git a/main.go b/main.go index ea82ec8..1487096 100644 --- a/main.go +++ b/main.go @@ -12,7 +12,7 @@ import ( "strings" ) -const VERSION string = "0.2.2" +const VERSION string = "0.3.0" var ( // Flags