Skip to content

Python script to determine when a college football team from a Power 5 conference (ACC, Big Ten, Big 12, Pac-12, or SEC) plays a non-power 5 school on the road

Notifications You must be signed in to change notification settings

inkjet/FBS_Power5

Repository files navigation

#Python + College Football xx ####Determing when large schools play small schools on the road

In college football scheduling, the Power 5 conference schools (ACC, Big Ten, Big 12, Pac-12, or SEC) almost always host schools from the smaller conferences (Sun Belt, MAC, etc). The big school (usually) get a win and the smaller school walks away with a paycheck of up to $1 million.

But some Power 5 schools play a small-conference school on the road a handful of times a year. So I wrote a Python script to find them all.

Requirements:

Note: both SQLAlchemy (for database creation) and Beautiful Soup (for web scraping) can be installed by pip install sqlalchemy beautifulsoup4 or are available as pre-installed modules in Anaconda.

To run:

python print_results.py

The script first creates a blank MySQL database. Next, that database is populated with all FBS schools and their conference. We use the Wikipedia table of FBS schools.

Finally, we compare our database with an online college football schedule to determine which Power 5 teams are playing road games vs. a non-Power 5 opponent each week. I used the schedule on the CBS Sports website.

Output for the 2015 season looks like this:

School database created at /home/user/FBS_Power5/FBS_schools.db

Air Force is not a Power 5 school, they're in the Mountain West
Akron is not a Power 5 school, they're in the MAC
Alabama is a Power 5 school in the SEC
<etc...>

Power 5 college football teams playing non-Power 5 teams on the road in 2015:

Week 1:
Oklahoma State at Central Michigan
Duke at Tulane
Baylor at SMU
Michigan State at Western Michigan
Washington at Boise State
Penn State at Temple
Mississippi State at Southern Miss
Purdue at Marshall
 
Week 2:
Miami (FL) at Florida Atlantic
Kansas State at UTSA
Minnesota at Colorado State
Pittsburgh at Akron
Missouri at Arkansas State
Arizona at Nevada
UCLA at UNLV
 
Week 3:
Colorado at Colorado State
NC State at Old Dominion
Iowa State at Toledo
Utah at Fresno State
 
Week 4:
Virginia Tech at East Carolina
NC State at South Alabama
 
Week 5:
Miami (FL) at Cincinnati
Vanderbilt at Middle Tennessee
 
Week 6:
Syracuse at South Florida
Duke at Army
 
Week 7:
Ole Miss at Memphis
 
Week 8:
 
Week 9:
Vanderbilt at Houston
Notre Dame at Temple
 
Week 10:
 
Week 11:
 
Week 12:
 
Week 13:
 
Week 14:



About

Python script to determine when a college football team from a Power 5 conference (ACC, Big Ten, Big 12, Pac-12, or SEC) plays a non-power 5 school on the road

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages