def setup_logging():
"""Setup Google-style logging
From: https://github.com/twitter/commons/blob/master/src/python/twitter/common/log/formatters/glog.py
"""
fmt = '%(levelletter)s%(asctime)s.%(msecs).03d %(process)d %(filename)s:%(lineno)d] %(message)s'If you are reading this - you enjoy college football. Or you may just enjoy working with different types of data. Hopefully, you're like me and like both. I am self-taught in Python, so I am by no means the end all be all expert of how to approach things, but if I can figure it out, you can to.
This guide is a fork of Parker Flemings (@statsowar on Twitter) guide "Introduction to College Football Data with R and cfbscrapR". We will go through the same excercises he did, simply with the Python equivalent to his R masterpiece.
If you have any questions - or see any errors - shoot me a tweet @GJMcClintock. This is very pragmagtically done - if it works, it works. None of what I presently deal with is very resource intensive, so I am sure there are much more efficient ways to get the job done. If you have suggestions on tha
| import msal | |
| import jwt | |
| import json | |
| import requests | |
| import pandas as pd | |
| from datetime import datetime | |
| accessToken = None | |
| requestHeaders = None | |
| tokenExpiry = None |