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
from slackclient import SlackClient | |
import requests | |
import os | |
from datetime import datetime | |
import time | |
last_available = None | |
notified = False | |
slack_token = os.environ.get('SLACK_BOT_API_TOKEN') |
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
#!/usr/bin/env python | |
import argparse | |
import hashlib | |
import json | |
def sha256_hash(data): | |
data_sha256 = hashlib.sha256(json.dumps(data, sort_keys=True)).hexdigest() | |
return data_sha256 | |
def main(): |
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
#!/usr/bin/env python | |
from urllib import urlencode | |
import urllib2 | |
import json | |
import random | |
import argparse | |
import hashlib | |
import time | |
import os |