This is a collection of the scrapers and parsers powering the South Florida Sun Sentinel's police incident maps. It runs on Lambda using the Serverless framework. The scripts currently grab Fort Lauderdale and Delray Beach's incident data, but more departments may be added in the future.
- Python 3.6
- Serverless CLI
- Amazon Web Services CLI
- Node (We used v8.9)
- The Sun Sentinel's AWS credentials
TKTKTK
Right now, handler.py is the main function. Other scrapers/parsers can be added to this file, but we may break it up into separate files if it gets more complex in the future.
Configuration for the Lambda function for deployment and scheduling is done in the serverless.yml file. A list of all available properties can be found here.
After you build your scripts, run
serverless deploy
...and that's it!
Run
serverless invoke -f makedata --log