| 1 |
# Gather Browsing Statistics |
| 2 |
|
| 3 |
`goproxy-stats` starts an HTTP proxy on :8080, counts the bytes received for |
| 4 |
web resources and prints the cumulative sum per URL every 20 seconds. |
| 5 |
|
| 6 |
Start it in one shell: |
| 7 |
|
| 8 |
```sh |
| 9 |
goproxy-stats |
| 10 |
``` |
| 11 |
|
| 12 |
Fetch goproxy homepage in another: |
| 13 |
|
| 14 |
```sh |
| 15 |
mkdir tmp |
| 16 |
cd tmp |
| 17 |
http_proxy=http://127.0.0.1:8080 wget -r -l 1 -H \ |
| 18 |
http://ripper234.com/p/introducing-goproxy-light-http-proxy/ |
| 19 |
``` |
| 20 |
|
| 21 |
Stop it after a moment. `goproxy-stats` should eventually print: |
| 22 |
```sh |
| 23 |
listening on :8080 |
| 24 |
statistics |
| 25 |
http://www.telerik.com/fiddler -> 84335 |
| 26 |
http://msmvps.com/robots.txt -> 157 |
| 27 |
http://eli.thegreenplace.net/robots.txt -> 294 |
| 28 |
http://www.phdcomics.com/robots.txt -> 211 |
| 29 |
http://resharper.blogspot.com/robots.txt -> 221 |
| 30 |
http://idanz.blogli.co.il/robots.txt -> 271 |
| 31 |
http://ripper234.com/p/introducing-goproxy-light-http-proxy/ -> 44407 |
| 32 |
http://live.gnome.org/robots.txt -> 298 |
| 33 |
http://ponetium.wordpress.com/robots.txt -> 178 |
| 34 |
http://pilaheleg.blogli.co.il/robots.txt -> 321 |
| 35 |
http://pilaheleg.wordpress.com/robots.txt -> 178 |
| 36 |
http://blogli.co.il/ -> 9165 |
| 37 |
http://nimrod-code.org/robots.txt -> 289 |
| 38 |
http://www.joelonsoftware.com/robots.txt -> 1245 |
| 39 |
http://top-performance.blogspot.com/robots.txt -> 227 |
| 40 |
http://ooc-lang.org/robots.txt -> 345 |
| 41 |
http://blogs.jetbrains.com/robots.txt -> 293 |
| 42 |
``` |
| 43 |
|