Parsing of NYPD complaints data
- Install Xcode Command Line Tools:
- open up a terminal, run
xcode-select --install
, and agree to the prompt.
- open up a terminal, run
- Clone this repository:
- set up an SSH key;
- run
mkdir -p ~/src/github/ cd ~/src/github git clone [email protected]:mikss/nypdcd.git cd nypdcd
- Bootstrap your development environment:
- run
make
, which will install and set up- brew (package manager)
- direnv (env vars based on the current directory)
- pre-commit (manage git hooks)
- a python virtual environment with all dependencies;
- add the direnv shell hook to your shell config (e.g.,
~/.zshrc
); - refresh your shell with
exec $SHELL
.
- run
- Fetch data: run
make local-copy
to save a local copy of NYPD complaints data via Socrata API.