Skip to content

Instantly share code, notes, and snippets.

View derek-adair's full-sized avatar
🎯
Starting a thing

Derek derek-adair

🎯
Starting a thing
View GitHub Profile
@derek-adair
derek-adair / fetch_2020_week1.py
Created July 4, 2020 13:01
Uses new NFL API to pull down 2020 week 1 schedule
import json
import requests
url = "https://api.nfl.com/v1/reroute"
# TODO: resolve if DNT or x-domain-id are necessary. pulled them from chrome inspector
payload = 'grant_type=client_credentials'
headers = {
'DNT': '1',
'x-domain-id': '100',
@derek-adair
derek-adair / tornado_asyncio.py
Created February 18, 2016 18:00 — forked from drgarcia1986/tornado_asyncio.py
Tornado and Asyncio Mixed example
# -*- coding: utf-8 -*-
import asyncio
import re
import asyncio_redis
import tornado.concurrent
import tornado.httpclient
import tornado.web
import tornado.platform.asyncio