Skip to content

Instantly share code, notes, and snippets.

View qharlie's full-sized avatar

charlie qharlie

  • USA
View GitHub Profile
@qharlie
qharlie / espn_nba.py
Created August 13, 2017 20:55 — forked from drewdresser/espn_nba.py
Grabs NBA play-by-play data for a given date range. Example usage: python espn_nba.py 2013-12-24 2013-12-26
from bs4 import BeautifulSoup
from urllib2 import urlopen
from datetime import datetime, timedelta
from time import sleep
import sys
import csv
# CONSTANTS
ESPN_URL = "http://scores.espn.go.com"
@qharlie
qharlie / NATs-Replay.py
Created August 20, 2019 02:25 — forked from bdowling/NATs-Replay.py
These are just some sample scripts to dump the nats stream and replay it to a local NATs server.
#!/usr/bin/env python
from nats.aio.client import Client as NATS
import json
import asyncio
import logging
import argparse
import gzip
import glob
import time