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
# -*- coding: utf-8 -*- | |
# | |
# Slack file downloader from export archive | |
# | |
# Updated to python 3 with 2to3, and tqdm was added. | |
# Usage: slack-download.py <extracted archive export dir> <full path to download dir> | |
import json | |
import sys | |
import urllib.request, urllib.parse, urllib.error |
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 csv | |
import sys | |
# Use with https://github.com/the-gearheads/ghScouting | |
# sys.argv[1]: Input csv name | |
# sys.argv[2]: Output csv name | |
# Amount of decimal places to round to | |
round_places = 2 |
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 struct | |
import sys | |
buffer = open(sys.argv[1], "rb") | |
header = buffer.read(13) | |
header_fmt_string = "ccccccccccccc" | |
header = struct.unpack(header_fmt_string, header) | |
def read_header(pos): |