DanaDanger / addresses

EveryBlock's address extractor in a command-line utility

This URL has Read+Write access

bmitchell (author)
Fri Jul 10 11:40:21 -0700 2009
bitbckt (committer)
Fri Jul 10 11:43:15 -0700 2009
addresses / README
100644 21 lines (14 sloc) 0.626 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
EveryBlock's address extractor in a command-line utility
 
Usage: addresses [<default city>]
 
Text is read from stdin. Addresses in the text are printed to stdout, one
line per address. If an address lacks a city, the default city is appended
(if a default city was provided on the command line).
 
Examples
--------
 
Find addresses on a web page:
curl http://www.springsgov.com/units/police/policeblotter.asp | addresses
 
Find addresses in a text file:
addresses < foo.txt
 
Find addresses in a text file and geocode them (assumes you have a geocode
command-line utility):
addresses < foo.txt | xargs -I ADDRESS geocode ADDRESS