A scraper for crimemapping.com. The script dumps the scraped data to an Azure Cosmos DB.
-
Install ChromeDriver
brew install --cask chromedriver
-
Create a Conda environment
conda create --name crimemapping --file requirements.txt
-
Activate the Conda environment
conda activate crimemapping
-
Create
.env
file with the following environment variables for Azure Cosmos DB:
ACCOUNT_HOST
- Azure Cosmos DB's location (e.g.,https://***.documents.azure.com:443/
)ACCOUNT_KEY
- aka Master KeyCOSMOS_DATABASE
- Database IDCOSMOS_CONTAINER
- Container ID
- Run
scrape.py
. Data will be dumped to the database.