This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import requests | |
import json | |
import calendar | |
from datetime import datetime, timedelta | |
# This script will download, then delete the non-external files older than 14 days. | |
_token = "" # administrator token, from https://api.slack.com/web | |
_project = "" # project name, from http://[project].slack.com |