A simple script to check the last update time of defined subfolders in Google Drive.
This script is useful to check if a file is being updated or not. If not updated for a certain time,
it can send a notification to Mattermost.
Use config.json
to define the subfolders you want to check and the time interval in hours.
- Create a project in Google Cloud Console
- Enable Google Drive API
- Create OAuth 2.0 credentials
- Download the credentials json file and copy its content to
/credentials.json
.
pip install -r requirements.txt
Edit config.json
to define the subfolders you want to check and the time interval in hours. Set your Mattermost webhook URL.
See the example file.