Police-Data-Accessibility-Project / automatic-archives

MIT License
1 stars 1 forks source link

automatic-archives

This tool uses the PDAP API to fetch data sources, then uses the Save Page Now API at the Internet Archive based on their update frequency.

Then, it uses the PDAP API to update the Data Sources' last_cached and url_status properties.

This script runs from the Automation Manager on a daily basis, with the Jenkinsfile and the Dockerfile utilized to ensure the script runs in a consistent environment and manner.

Requires the following environment variables to be set:

VUE_APP_PDAP_API_KEY=<YOUR_PDAP_API_KEY>
VITE_VUE_APP_BASE_URL=<YOUR_PDAP_API_URL>