A hacky bit of codes to download responsive files from the atrociously designed NextRequest public records request websites.
Currently hard-coded for Los Angeles, but you should be able to just change the value of BASE_URL to whatever you want.
- Linux or OSX
- Python 3.7 or higher
- Pip
- whatever's in the
requirements.txtfile
- Clone the repo:
git clone git@github.com:lindseybaron/nextrequester.git
- Install requirements:
cd nextrequester pip install -r requirements.txt - Set config values in
./config.yaml - Copy
./secret_example.yamland add your login credentials:cp secret_example.yaml secret.yaml
To download all the files for a single records request, use the request ID from the url.
python src/nr.py req [request-id]To download all the files from https://lacity.nextrequest.com/documents:
python src/nr.py alldocs