Add NCAA football logo download script and update team abbreviations
- Added download_espn_ncaa_fb_logos.py script to download logos from ESPN API - Downloaded 50 NCAA football team logos to test/ncaaFBlogos/ - Updated all_team_abbreviations.txt with current ESPN team data - Updated various team logo files (MLB, NBA, NFL, NHL, NCAAF)
@@ -1,404 +1,53 @@
|
|||||||
NCAAF
|
NCAAF
|
||||||
AAMU => Alabama A&M Bulldogs
|
AMH => Amherst Mammoths
|
||||||
ACU => Abilene Christian Wildcats
|
|
||||||
ADA => Adams State Grizzlies
|
|
||||||
ADR => Adrian Bulldogs
|
|
||||||
AFA => Air Force Falcons
|
|
||||||
AIC => American International Yellow Jackets
|
|
||||||
AKR => Akron Zips
|
|
||||||
ALA => Alabama Crimson Tide
|
|
||||||
ALB => Albright Lions
|
|
||||||
ALBS => Albany State (GA) Golden Rams
|
|
||||||
ALCN => Alcorn State Braves
|
|
||||||
ALD => Alderson Broaddus Battlers
|
|
||||||
ALF => Alfred Saxons
|
|
||||||
ALL => Allegheny Gators
|
|
||||||
ALST => Alabama State Hornets
|
|
||||||
AMH => Amherst College Mammoths
|
|
||||||
AND => Anderson (IN) Ravens
|
|
||||||
ANG => Angelo State Rams
|
|
||||||
ANN => Anna Maria College Amcats
|
ANN => Anna Maria College Amcats
|
||||||
APP => Appalachian State Mountaineers
|
|
||||||
APSU => Austin Peay Governors
|
|
||||||
ARIZ => Arizona Wildcats
|
ARIZ => Arizona Wildcats
|
||||||
ARK => Arkansas-Monticello Boll Weevils
|
ARK => Arkansas Razorbacks
|
||||||
ARMY => Army Black Knights
|
|
||||||
ARST => Arkansas State Red Wolves
|
|
||||||
ASH => Ashland Eagles
|
|
||||||
ASP => Assumption Greyhounds
|
|
||||||
ASU => Arizona State Sun Devils
|
ASU => Arizona State Sun Devils
|
||||||
AUB => Auburn Tigers
|
AUB => Auburn Tigers
|
||||||
AUG => St. Augustine's Falcons
|
BOIS => Boise State Broncos
|
||||||
AUR => Aurora Spartans
|
BRST => Bridgewater State Bears
|
||||||
AUS => Austin College 'Roos
|
BUENA => Buena Vista Beavers
|
||||||
AVE => Averett Cougars
|
CAL => California Golden Bears
|
||||||
AVI => Avila College Eagles
|
CAR => Carroll University (WI) Pioneers
|
||||||
AZU => Azusa Pacific Cougars
|
CLA => Claremont-Mudd-Scripps College Stags
|
||||||
BAK => Baker University Wildcats
|
COLBY => Colby College White Mules
|
||||||
BAL => Baldwin Wallace Yellow Jackets
|
|
||||||
BALL => Ball State Cardinals
|
|
||||||
BAT => Bates College Bobcats
|
|
||||||
BAY => Baylor Bears
|
|
||||||
BC => Boston College Eagles
|
|
||||||
BEC => Becker College Hawks
|
|
||||||
BEL => Beloit College Buccaneers
|
|
||||||
BEN => Benedictine University (IL) Eagles
|
|
||||||
BENT => Bentley Falcons
|
|
||||||
BET => Bethel (TN) Wildcats
|
|
||||||
BGSU => Bowling Green Falcons
|
|
||||||
BHS => Black Hills State Yellow Jackets
|
|
||||||
BIR => Birmingham-Southern Panthers
|
|
||||||
BKN => Bacone College Warriors
|
|
||||||
BLA => Blackburn Beavers
|
|
||||||
BLOM => Bloomsburg Huskies
|
|
||||||
BLU => Bluffton Beavers
|
|
||||||
BOW => Bowdoin Polar Bears
|
|
||||||
BRI => British Columbia Thunderbirds
|
|
||||||
BRWN => Brown Bears
|
|
||||||
BST => Bemidji State Beavers
|
|
||||||
BSU => Bowie State Bulldogs
|
|
||||||
BUCK => Bucknell Bison
|
|
||||||
BUE => Buena Vista Beavers
|
|
||||||
BUF => Buffalo State Bengals
|
|
||||||
BUFF => Buffalo Bulls
|
|
||||||
BUT => Butler Bulldogs
|
|
||||||
BYU => BYU Cougars
|
|
||||||
CAL => California Lutheran Kingsmen
|
|
||||||
CAM => Campbell Fighting Camels
|
|
||||||
CAP => Capital University Crusaders
|
|
||||||
CAR => Carthage College Red Men
|
|
||||||
CARK => Central Arkansas Bears
|
|
||||||
CAS => Castleton Spartans
|
|
||||||
CAT => Catholic University Cardinals
|
|
||||||
CCSU => Central Connecticut Blue Devils
|
|
||||||
CCU => Coastal Carolina Chanticleers
|
|
||||||
CEN => Centre College Colonels
|
|
||||||
CHA => Chapman University Panthers
|
|
||||||
CHI => Chicago Maroons
|
|
||||||
CHSO => Charleston Southern Buccaneers
|
|
||||||
CIN => Cincinnati Bearcats
|
|
||||||
CLA => Clarion Golden Eagles
|
|
||||||
CLEM => Clemson Tigers
|
|
||||||
CLMB => Columbia Lions
|
|
||||||
CLT => Charlotte 49ers
|
|
||||||
CMU => Central Michigan Chippewas
|
|
||||||
COE => Coe College Kohawks
|
|
||||||
COL => Colorado School of Mines Orediggers
|
|
||||||
COLC => Colorado College Tigers
|
|
||||||
COLG => Colgate Raiders
|
|
||||||
COLO => Colorado Buffaloes
|
COLO => Colorado Buffaloes
|
||||||
CON => Concordia-Minnesota Cobbers
|
CONN => UConn Huskies
|
||||||
COR => Cornell College (IA) Rams
|
|
||||||
CP => Cal Poly Mustangs
|
CP => Cal Poly Mustangs
|
||||||
CRO => Crown Storm
|
|
||||||
CSU => Colorado State Rams
|
CSU => Colorado State Rams
|
||||||
CUL => Culver-Stockton Wildcats
|
|
||||||
CUM => Cumberland College Indians
|
|
||||||
CUR => Curry College Colonels
|
CUR => Curry College Colonels
|
||||||
DAK => Dakota Wesleyan Tigers
|
DEL => Delaware Blue Hens
|
||||||
DART => Dartmouth Big Green
|
|
||||||
DAV => Davidson Wildcats
|
|
||||||
DAY => Dayton Flyers
|
|
||||||
DEF => Defiance Yellow Jackets
|
|
||||||
DEL => Delta State Statesmen
|
|
||||||
DEN => Denison Big Red
|
|
||||||
DEP => DePauw Tigers
|
|
||||||
DIC => Dickinson State Blue Hawks
|
|
||||||
DRKE => Drake Bulldogs
|
|
||||||
DSU => Delaware State Hornets
|
|
||||||
DUB => Dubuque Spartans
|
DUB => Dubuque Spartans
|
||||||
DUKE => Duke Blue Devils
|
ELM => Elmhurst Bluejays
|
||||||
DUQ => Duquesne Dukes
|
FAMU => Florida A&M Rattlers
|
||||||
EAS => Eastern New Mexico Greyhounds
|
|
||||||
ECU => East Carolina Pirates
|
|
||||||
EDI => Edinboro Fighting Scots
|
|
||||||
EIU => Eastern Illinois Panthers
|
|
||||||
EKU => Eastern Kentucky Colonels
|
|
||||||
ELI => Elizabeth City State Vikings
|
|
||||||
ELM => Elmhurst Blue Jays
|
|
||||||
ELON => Elon Phoenix
|
|
||||||
EMO => Emory & Henry Wasps
|
|
||||||
EMP => Emporia State Hornets
|
|
||||||
EMU => Eastern Michigan Eagles
|
|
||||||
END => Endicott College Gulls
|
|
||||||
EOR => Eastern Oregon Mountaineers
|
|
||||||
ETSU => East Tennessee State Buccaneers
|
|
||||||
EUR => Eureka College Red Devils
|
|
||||||
EWU => Eastern Washington Eagles
|
|
||||||
FAU => Florida Atlantic Owls
|
|
||||||
FAY => Fayetteville State Broncos
|
|
||||||
FDU => FDU-Florham Devils
|
|
||||||
FER => Ferrum Panthers
|
|
||||||
FIN => Findlay Oilers
|
|
||||||
FIT => Fitchburg State Falcons
|
|
||||||
FIU => Florida International Panthers
|
|
||||||
FLA => Florida Gators
|
FLA => Florida Gators
|
||||||
FOR => Fort Valley State Wildcats
|
|
||||||
FRA => Franklin Grizzlies
|
|
||||||
FRES => Fresno State Bulldogs
|
|
||||||
FRO => Frostburg State Bobcats
|
|
||||||
FRST => Ferris State Bulldogs
|
|
||||||
FSU => Florida State Seminoles
|
FSU => Florida State Seminoles
|
||||||
FTLW => Fort Lewis Skyhawks
|
|
||||||
FUR => Furman Paladins
|
|
||||||
GAL => Gallaudet Bison
|
|
||||||
GAN => Gannon Golden Knights
|
|
||||||
GASO => Georgia Southern Eagles
|
|
||||||
GAST => Georgia State Panthers
|
|
||||||
GEN => Geneva College Golden Tornadoes
|
|
||||||
GEO => George Fox University Bruins
|
|
||||||
GET => Gettysburg Bullets
|
|
||||||
GLE => Glenville State Pioneers
|
|
||||||
GMU => George Mason Patriots
|
|
||||||
GRA => Grand Valley State Lakers
|
|
||||||
GRE => Greenville Panthers
|
|
||||||
GRI => Grinnell Pioneers
|
GRI => Grinnell Pioneers
|
||||||
GRO => Grove City College Wolverines
|
|
||||||
GT => Georgia Tech Yellow Jackets
|
GT => Georgia Tech Yellow Jackets
|
||||||
GUI => Guilford Quakers
|
GTWN => Georgetown Hoyas
|
||||||
GWEB => Gardner-Webb Bulldogs
|
|
||||||
HAM => Hampden-Sydney Tigers
|
|
||||||
HAMP => Hampton Pirates
|
|
||||||
HAN => Hanover Panthers
|
|
||||||
HAR => Hartwick Hawks
|
|
||||||
HARV => Harvard Crimson
|
|
||||||
HAS => Haskell Indian Nations Jayhawks
|
|
||||||
HAW => Hawai'i Rainbow Warriors
|
HAW => Hawai'i Rainbow Warriors
|
||||||
HBU => Houston Baptist Huskies
|
|
||||||
HC => Holy Cross Crusaders
|
|
||||||
HEI => Heidelberg Student Princes
|
|
||||||
HEN => Hendrix College Warriors
|
|
||||||
HIL => Hillsdale Chargers
|
|
||||||
HIR => Hiram College Terriers
|
|
||||||
HOB => Hobart Statesmen
|
|
||||||
HOU => Houston Cougars
|
|
||||||
HOW => Howard Bison
|
HOW => Howard Bison
|
||||||
HUS => Husson Eagles
|
|
||||||
IDHO => Idaho Vandals
|
IDHO => Idaho Vandals
|
||||||
IDST => Idaho State Bengals
|
|
||||||
ILL => Illinois Fighting Illini
|
|
||||||
ILST => Illinois State Redbirds
|
|
||||||
ILW => Illinois Wesleyan Titans
|
|
||||||
IND => Indianapolis
|
|
||||||
INST => Indiana State Sycamores
|
|
||||||
IOW => Iowa Wesleyan Tigers
|
|
||||||
IOWA => Iowa Hawkeyes
|
|
||||||
ISU => Iowa State Cyclones
|
ISU => Iowa State Cyclones
|
||||||
ITH => Ithaca Bombers
|
JXST => Jacksonville State Gamecocks
|
||||||
IU => Indiana Hoosiers
|
|
||||||
JKST => Jackson State Tigers
|
|
||||||
JMU => James Madison Dukes
|
|
||||||
JOH => Johnson C Smith Golden Bulls
|
|
||||||
JUN => Juniata Eagles
|
|
||||||
JVST => Jacksonville State Gamecocks
|
|
||||||
KAL => Kalamazoo Hornets
|
|
||||||
KAN => Kansas Wesleyan University Coyotes
|
|
||||||
KEN => Kenyon Lords
|
|
||||||
KENN => Kennesaw State Owls
|
|
||||||
KENT => Kent State Golden Flashes
|
|
||||||
KIN => King's College (PA) Monarchs
|
|
||||||
KNO => Knox College Prairie Fire
|
|
||||||
KSU => Kansas State Wildcats
|
|
||||||
KU => Kansas Jayhawks
|
|
||||||
KUT => Kutztown Golden Bears
|
|
||||||
KYST => Kentucky State Thorobreds
|
|
||||||
KYW => Kentucky Wesleyan Panthers
|
|
||||||
LA => La Verne Leopards
|
|
||||||
LAC => Lane Dragons
|
|
||||||
LAF => Lafayette Leopards
|
|
||||||
LAG => LaGrange College Panthers
|
|
||||||
LAK => Lake Forest Foresters
|
|
||||||
LAM => Lambuth Eagles
|
|
||||||
LAN => Langston Lions
|
|
||||||
LAW => Lawrence Vikings
|
|
||||||
LEB => Lebanon Valley Flying Dutchmen
|
|
||||||
LEH => Lehigh Mountain Hawks
|
|
||||||
LEN => Lenoir-Rhyne Bears
|
|
||||||
LEW => Lewis & Clark Pioneers
|
|
||||||
LIB => Liberty Flames
|
|
||||||
LIM => Limestone Saints
|
|
||||||
LIN => Linfield Wildcats
|
|
||||||
LOC => Lock Haven Bald Eagles
|
|
||||||
LOR => Loras College Duhawks
|
|
||||||
LOU => Louisville Cardinals
|
|
||||||
LSU => LSU Tigers
|
|
||||||
LT => Louisiana Tech Bulldogs
|
|
||||||
LUT => Luther Norse
|
LUT => Luther Norse
|
||||||
LYC => Lycoming Warriors
|
MESA => Colorado Mesa Mavericks
|
||||||
M-OH => Miami (OH) RedHawks
|
MIL => Millikin Big Blue
|
||||||
MAC => Macalester Scots
|
MOR => Morehouse College Maroon Tigers
|
||||||
MAI => Maine Maritime Mariners
|
NOR => North Park Vikings
|
||||||
MAN => Mansfield Mountaineers
|
|
||||||
MAR => Maryville College Fighting Scots
|
|
||||||
MAS => Mass Maritime Buccaneers
|
|
||||||
MASS => UMass Minutemen
|
|
||||||
MAY => Mayville State Comets
|
|
||||||
MCM => McMurry War Hawks
|
|
||||||
MCN => McNeese Cowboys
|
|
||||||
MD => Maryland Terrapins
|
|
||||||
MEM => Memphis Tigers
|
|
||||||
MEN => Menlo College Oaks
|
|
||||||
MER => Merchant Marine Mariners
|
|
||||||
MERC => Mercyhurst Lakers
|
|
||||||
MES => Colorado Mesa Mavericks
|
|
||||||
MET => Methodist Monarchs
|
|
||||||
MH => Mars Hill Mountain Lions
|
|
||||||
MIAMI => Miami Hurricanes
|
|
||||||
MICH => Michigan Wolverines
|
|
||||||
MID => Midwestern State Mustangs
|
|
||||||
MIL => Millsaps Majors
|
|
||||||
MIN => Minot State Beavers
|
|
||||||
MINN => Minnesota Golden Gophers
|
|
||||||
MIS => Missouri Western Griffons
|
|
||||||
MISS => Ole Miss Rebels
|
|
||||||
MIZ => Missouri Tigers
|
|
||||||
MNST => Minnesota State Mavericks
|
|
||||||
MONM => Monmouth Hawks
|
|
||||||
MONT => Montana Grizzlies
|
|
||||||
MOR => Morningside Chiefs
|
|
||||||
MORE => Morehead State Eagles
|
|
||||||
MORG => Morgan State Bears
|
|
||||||
MOU => Mount Union Raiders
|
|
||||||
MRSH => Marshall Thundering Herd
|
|
||||||
MRST => Marist Red Foxes
|
|
||||||
MSST => Mississippi State Bulldogs
|
|
||||||
MSU => Michigan State Spartans
|
|
||||||
MTST => Montana State Bobcats
|
|
||||||
MTSU => Middle Tennessee Blue Raiders
|
|
||||||
MTU => Michigan Tech Huskies
|
|
||||||
MUH => Muhlenberg Mules
|
|
||||||
MUR => Murray State Racers
|
|
||||||
MUS => Muskingum Fighting Muskies
|
|
||||||
MVSU => Mississippi Valley State Delta Devils
|
|
||||||
NAU => Northern Arizona Lumberjacks
|
|
||||||
NAVY => Navy Midshipmen
|
|
||||||
NBY => Newberry Wolves
|
|
||||||
NCAT => North Carolina A&T Aggies
|
|
||||||
NCCU => North Carolina Central Eagles
|
|
||||||
NCST => NC State Wolfpack
|
|
||||||
ND => Notre Dame Fighting Irish
|
|
||||||
NDOH => Notre Dame College Falcons
|
|
||||||
NDSU => North Dakota State Bison
|
|
||||||
NEB => Nebraska-Kearney Lopers
|
|
||||||
NEV => Nevada Wolf Pack
|
|
||||||
NH => New Haven Chargers
|
|
||||||
NICH => Nicholls Colonels
|
|
||||||
NIU => Northern Illinois Huskies
|
|
||||||
NMH => New Mexico Highlands Cowboys
|
|
||||||
NMI => Northern Michigan Wildcats
|
|
||||||
NMSU => New Mexico State Aggies
|
|
||||||
NOR => Univ. of Northwestern-St. Paul Eagles
|
|
||||||
NORF => Norfolk State Spartans
|
|
||||||
NW => Northwestern Wildcats
|
|
||||||
OBE => Oberlin Yeomen
|
|
||||||
ODU => Old Dominion Monarchs
|
|
||||||
OHI => Ohio Northern Polar Bears
|
|
||||||
OHIO => Ohio Bobcats
|
|
||||||
OKL => Oklahoma Baptist Bison
|
|
||||||
OKST => Oklahoma State Cowboys
|
|
||||||
OLI => Olivet College Comets
|
|
||||||
OMA => Omaha Mavericks
|
|
||||||
ORST => Oregon State Beavers
|
|
||||||
OSU => Ohio State Buckeyes
|
|
||||||
OTT => Otterbein Cardinals
|
|
||||||
OU => Oklahoma Sooners
|
|
||||||
PAC => Pacific (OR) Boxers
|
|
||||||
PENN => Pennsylvania Quakers
|
|
||||||
PIKE => Pikeville Bears
|
|
||||||
PITT => Pittsburgh Panthers
|
|
||||||
PRE => Presentation College Saints
|
|
||||||
PRI => Principia College Panthers
|
|
||||||
PRIN => Princeton Tigers
|
|
||||||
PST => Pittsburg State Gorillas
|
|
||||||
PSU => Penn State Nittany Lions
|
|
||||||
RED => Redlands Bulldogs
|
RED => Redlands Bulldogs
|
||||||
RICE => Rice Owls
|
|
||||||
RICH => Richmond Spiders
|
|
||||||
RIT => Rochester Yellow Jackets
|
|
||||||
ROB => Robert Morris (IL) Eagles
|
|
||||||
ROS => Rose-Hulman Engineers
|
|
||||||
RUTG => Rutgers Scarlet Knights
|
|
||||||
SAC => Sacramento State Hornets
|
SAC => Sacramento State Hornets
|
||||||
SAG => Saginaw Valley Cardinals
|
|
||||||
SDAK => South Dakota Coyotes
|
|
||||||
SDSU => San Diego State Aztecs
|
SDSU => San Diego State Aztecs
|
||||||
SET => Seton Hill Griffins
|
|
||||||
SIU => Southern Illinois Salukis
|
|
||||||
SJSU => San José State Spartans
|
SJSU => San José State Spartans
|
||||||
SLI => Slippery Rock The Rock
|
|
||||||
SOU => Southwestern College Moundbuilders
|
|
||||||
SPR => Springfield College Pride
|
|
||||||
ST => St. Scholastica Saints
|
|
||||||
STAN => Stanford Cardinal
|
STAN => Stanford Cardinal
|
||||||
STE => Stevenson University Mustangs
|
|
||||||
STET => Stetson Hatters
|
STET => Stetson Hatters
|
||||||
STO => Stonehill College Skyhawks
|
|
||||||
SUS => Susquehanna University River Hawks
|
|
||||||
SUU => Southern Utah Thunderbirds
|
|
||||||
SYR => Syracuse Orange
|
|
||||||
TA&M => Texas A&M Aggies
|
|
||||||
TAY => Taylor Trojans
|
|
||||||
TEM => Temple Owls
|
|
||||||
TEX => Texas Longhorns
|
|
||||||
TIF => Tiffin University Dragons
|
|
||||||
TLSA => Tulsa Golden Hurricane
|
|
||||||
TRI => Trinity University (TX) Tigers
|
|
||||||
TUF => Tufts University Jumbos
|
|
||||||
TXST => Texas State Bobcats
|
|
||||||
UAB => UAB Blazers
|
UAB => UAB Blazers
|
||||||
UAPB => Arkansas-Pine Bluff Golden Lions
|
|
||||||
UCD => UC Davis Aggies
|
|
||||||
UCF => UCF Knights
|
|
||||||
UCLA => UCLA Bruins
|
UCLA => UCLA Bruins
|
||||||
UCONN => UConn Huskies
|
|
||||||
UGA => Georgia Bulldogs
|
UGA => Georgia Bulldogs
|
||||||
UK => Kentucky Wildcats
|
|
||||||
UL => Louisiana Ragin' Cajuns
|
|
||||||
ULM => UL Monroe Warhawks
|
|
||||||
UMD => Minnesota-Duluth Bulldogs
|
|
||||||
UMDA => UMASS Dartmouth Corsairs
|
|
||||||
UML => UMass Lowell River Hawks
|
|
||||||
UNA => North Alabama Lions
|
|
||||||
UNC => North Carolina Tar Heels
|
|
||||||
UNCO => Northern Colorado Bears
|
|
||||||
UND => North Dakota Fighting Hawks
|
|
||||||
UNH => New Hampshire Wildcats
|
|
||||||
UNI => University of Mary Marauders
|
|
||||||
UNLV => UNLV Rebels
|
|
||||||
UNM => New Mexico Lobos
|
|
||||||
UNNY => Union Dutchmen
|
|
||||||
UNT => North Texas Mean Green
|
|
||||||
UPP => Upper Iowa Peacocks
|
|
||||||
URI => Rhode Island Rams
|
|
||||||
USA => South Alabama Jaguars
|
USA => South Alabama Jaguars
|
||||||
USC => USC Trojans
|
USC => USC Trojans
|
||||||
USD => San Diego Toreros
|
|
||||||
USF => South Florida Bulls
|
USF => South Florida Bulls
|
||||||
USU => Utah State Aggies
|
|
||||||
UTAH => Utah Utes
|
|
||||||
UTC => Chattanooga Mocs
|
|
||||||
UTI => Utica College Pioneers
|
|
||||||
UVA => Virginia Cavaliers
|
|
||||||
VAL => Valley City State Vikings
|
|
||||||
VAN => Vanderbilt Commodores
|
|
||||||
VILL => Villanova Wildcats
|
|
||||||
VIR => Virginia State Trojans
|
|
||||||
VT => Virginia Tech Hokies
|
|
||||||
WAB => Wabash College Little Giants
|
|
||||||
WAKE => Wake Forest Demon Deacons
|
|
||||||
WAS => Washington-Missouri Bears
|
|
||||||
WASH => Washington Huskies
|
|
||||||
WAY => Wayne State (MI) Warriors
|
|
||||||
WES => Westminster College (MO) Blue Jays
|
|
||||||
WHE => Wheaton College Illinois Thunder
|
|
||||||
WIL => Wilkes University Colonels
|
|
||||||
WIN => Wingate Bulldogs
|
|
||||||
WIS => Wisconsin-Platteville Pioneers
|
|
||||||
WISC => Wisconsin Badgers
|
|
||||||
WKU => Western Kentucky Hilltoppers
|
|
||||||
WOR => Worcester State College Lancers
|
|
||||||
WSU => Washington State Cougars
|
|
||||||
WVU => West Virginia Mountaineers
|
|
||||||
YALE => Yale Bulldogs
|
YALE => Yale Bulldogs
|
||||||
|
|
||||||
NBA
|
NBA
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 35 KiB |
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 53 KiB |
|
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 61 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 31 KiB |
|
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 5.0 KiB |
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 40 KiB |
192
test/download_espn_ncaa_fb_logos.py
Normal file
@@ -0,0 +1,192 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
"""
|
||||||
|
Script to download all NCAA Football team logos from ESPN API
|
||||||
|
and update the all_team_abbreviations.txt file with current ESPN abbreviations.
|
||||||
|
"""
|
||||||
|
|
||||||
|
import os
|
||||||
|
import requests
|
||||||
|
import json
|
||||||
|
from pathlib import Path
|
||||||
|
import time
|
||||||
|
|
||||||
|
def create_logo_directory():
|
||||||
|
"""Create the ncaaFBlogos directory if it doesn't exist."""
|
||||||
|
logo_dir = Path("test/ncaaFBlogos")
|
||||||
|
logo_dir.mkdir(parents=True, exist_ok=True)
|
||||||
|
return logo_dir
|
||||||
|
|
||||||
|
def fetch_teams_data():
|
||||||
|
"""Fetch team data from ESPN API."""
|
||||||
|
url = "https://site.api.espn.com/apis/site/v2/sports/football/college-football/teams"
|
||||||
|
|
||||||
|
try:
|
||||||
|
response = requests.get(url, timeout=30)
|
||||||
|
response.raise_for_status()
|
||||||
|
return response.json()
|
||||||
|
except requests.exceptions.RequestException as e:
|
||||||
|
print(f"Error fetching teams data: {e}")
|
||||||
|
return None
|
||||||
|
|
||||||
|
def download_logo(url, filepath, team_name):
|
||||||
|
"""Download a logo from URL and save to filepath."""
|
||||||
|
try:
|
||||||
|
response = requests.get(url, timeout=30)
|
||||||
|
response.raise_for_status()
|
||||||
|
|
||||||
|
with open(filepath, 'wb') as f:
|
||||||
|
f.write(response.content)
|
||||||
|
|
||||||
|
print(f"✓ Downloaded: {team_name} -> {filepath.name}")
|
||||||
|
return True
|
||||||
|
|
||||||
|
except requests.exceptions.RequestException as e:
|
||||||
|
print(f"✗ Failed to download {team_name}: {e}")
|
||||||
|
return False
|
||||||
|
|
||||||
|
def normalize_abbreviation(abbreviation):
|
||||||
|
"""Normalize team abbreviation to lowercase for filename."""
|
||||||
|
return abbreviation.lower()
|
||||||
|
|
||||||
|
def update_abbreviations_file(teams_data, abbreviations_file_path):
|
||||||
|
"""Update the all_team_abbreviations.txt file with current ESPN abbreviations."""
|
||||||
|
print(f"\nUpdating abbreviations file: {abbreviations_file_path}")
|
||||||
|
|
||||||
|
# Read existing file
|
||||||
|
existing_content = []
|
||||||
|
if os.path.exists(abbreviations_file_path):
|
||||||
|
with open(abbreviations_file_path, 'r', encoding='utf-8') as f:
|
||||||
|
existing_content = f.readlines()
|
||||||
|
|
||||||
|
# Find the NCAAF section
|
||||||
|
ncaaf_start = -1
|
||||||
|
ncaaf_end = -1
|
||||||
|
|
||||||
|
for i, line in enumerate(existing_content):
|
||||||
|
if line.strip() == "NCAAF":
|
||||||
|
ncaaf_start = i
|
||||||
|
elif ncaaf_start != -1 and line.strip() and not line.startswith(" "):
|
||||||
|
ncaaf_end = i
|
||||||
|
break
|
||||||
|
|
||||||
|
if ncaaf_start == -1:
|
||||||
|
print("Warning: Could not find NCAAF section in abbreviations file")
|
||||||
|
return
|
||||||
|
|
||||||
|
if ncaaf_end == -1:
|
||||||
|
ncaaf_end = len(existing_content)
|
||||||
|
|
||||||
|
# Extract teams from ESPN data
|
||||||
|
espn_teams = []
|
||||||
|
for team_data in teams_data:
|
||||||
|
team = team_data.get('team', {})
|
||||||
|
abbreviation = team.get('abbreviation', '')
|
||||||
|
display_name = team.get('displayName', '')
|
||||||
|
|
||||||
|
if abbreviation and display_name:
|
||||||
|
espn_teams.append((abbreviation, display_name))
|
||||||
|
|
||||||
|
# Sort teams by abbreviation
|
||||||
|
espn_teams.sort(key=lambda x: x[0])
|
||||||
|
|
||||||
|
# Create new NCAAF section
|
||||||
|
new_ncaaf_section = ["NCAAF\n"]
|
||||||
|
for abbreviation, display_name in espn_teams:
|
||||||
|
new_ncaaf_section.append(f" {abbreviation} => {display_name}\n")
|
||||||
|
new_ncaaf_section.append("\n")
|
||||||
|
|
||||||
|
# Reconstruct the file
|
||||||
|
new_content = (
|
||||||
|
existing_content[:ncaaf_start] +
|
||||||
|
new_ncaaf_section +
|
||||||
|
existing_content[ncaaf_end:]
|
||||||
|
)
|
||||||
|
|
||||||
|
# Write updated file
|
||||||
|
with open(abbreviations_file_path, 'w', encoding='utf-8') as f:
|
||||||
|
f.writelines(new_content)
|
||||||
|
|
||||||
|
print(f"✓ Updated abbreviations file with {len(espn_teams)} NCAAF teams")
|
||||||
|
|
||||||
|
def main():
|
||||||
|
"""Main function to download all NCAA FB team logos and update abbreviations."""
|
||||||
|
print("Starting NCAA Football logo download and abbreviations update...")
|
||||||
|
|
||||||
|
# Create directory
|
||||||
|
logo_dir = create_logo_directory()
|
||||||
|
print(f"Created/verified directory: {logo_dir}")
|
||||||
|
|
||||||
|
# Fetch teams data
|
||||||
|
print("Fetching teams data from ESPN API...")
|
||||||
|
data = fetch_teams_data()
|
||||||
|
|
||||||
|
if not data:
|
||||||
|
print("Failed to fetch teams data. Exiting.")
|
||||||
|
return
|
||||||
|
|
||||||
|
# Extract teams
|
||||||
|
teams = []
|
||||||
|
try:
|
||||||
|
sports = data.get('sports', [])
|
||||||
|
for sport in sports:
|
||||||
|
leagues = sport.get('leagues', [])
|
||||||
|
for league in leagues:
|
||||||
|
teams = league.get('teams', [])
|
||||||
|
break
|
||||||
|
except (KeyError, IndexError) as e:
|
||||||
|
print(f"Error parsing teams data: {e}")
|
||||||
|
return
|
||||||
|
|
||||||
|
print(f"Found {len(teams)} teams")
|
||||||
|
|
||||||
|
# Download logos
|
||||||
|
downloaded_count = 0
|
||||||
|
failed_count = 0
|
||||||
|
|
||||||
|
for team_data in teams:
|
||||||
|
team = team_data.get('team', {})
|
||||||
|
|
||||||
|
# Extract team information
|
||||||
|
abbreviation = team.get('abbreviation', '')
|
||||||
|
display_name = team.get('displayName', 'Unknown')
|
||||||
|
logos = team.get('logos', [])
|
||||||
|
|
||||||
|
if not abbreviation or not logos:
|
||||||
|
print(f"⚠ Skipping {display_name}: missing abbreviation or logos")
|
||||||
|
continue
|
||||||
|
|
||||||
|
# Get the default logo (first one is usually default)
|
||||||
|
logo_url = logos[0].get('href', '')
|
||||||
|
if not logo_url:
|
||||||
|
print(f"⚠ Skipping {display_name}: no logo URL")
|
||||||
|
continue
|
||||||
|
|
||||||
|
# Create filename
|
||||||
|
filename = f"{normalize_abbreviation(abbreviation)}.png"
|
||||||
|
filepath = logo_dir / filename
|
||||||
|
|
||||||
|
# Skip if already exists
|
||||||
|
if filepath.exists():
|
||||||
|
print(f"⏭ Skipping {display_name}: {filename} already exists")
|
||||||
|
continue
|
||||||
|
|
||||||
|
# Download logo
|
||||||
|
if download_logo(logo_url, filepath, display_name):
|
||||||
|
downloaded_count += 1
|
||||||
|
else:
|
||||||
|
failed_count += 1
|
||||||
|
|
||||||
|
# Small delay to be respectful to the API
|
||||||
|
time.sleep(0.1)
|
||||||
|
|
||||||
|
print(f"\nDownload complete!")
|
||||||
|
print(f"✓ Successfully downloaded: {downloaded_count} logos")
|
||||||
|
print(f"✗ Failed downloads: {failed_count}")
|
||||||
|
print(f"📁 Logos saved in: {logo_dir}")
|
||||||
|
|
||||||
|
# Update abbreviations file
|
||||||
|
abbreviations_file_path = "assets/sports/all_team_abbreviations.txt"
|
||||||
|
update_abbreviations_file(teams, abbreviations_file_path)
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
BIN
test/ncaaFBlogos/amh.png
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
test/ncaaFBlogos/ann.png
Normal file
|
After Width: | Height: | Size: 65 KiB |
BIN
test/ncaaFBlogos/ariz.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
test/ncaaFBlogos/ark.png
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
test/ncaaFBlogos/asu.png
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
test/ncaaFBlogos/aub.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
test/ncaaFBlogos/bois.png
Normal file
|
After Width: | Height: | Size: 54 KiB |
BIN
test/ncaaFBlogos/brst.png
Normal file
|
After Width: | Height: | Size: 109 KiB |
BIN
test/ncaaFBlogos/buena.png
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
test/ncaaFBlogos/cal.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
test/ncaaFBlogos/car.png
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
test/ncaaFBlogos/cla.png
Normal file
|
After Width: | Height: | Size: 53 KiB |
BIN
test/ncaaFBlogos/colby.png
Normal file
|
After Width: | Height: | Size: 105 KiB |
BIN
test/ncaaFBlogos/colo.png
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
test/ncaaFBlogos/conn.png
Normal file
|
After Width: | Height: | Size: 53 KiB |
BIN
test/ncaaFBlogos/cp.png
Normal file
|
After Width: | Height: | Size: 49 KiB |
BIN
test/ncaaFBlogos/csu.png
Normal file
|
After Width: | Height: | Size: 84 KiB |
BIN
test/ncaaFBlogos/cur.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
test/ncaaFBlogos/del.png
Normal file
|
After Width: | Height: | Size: 47 KiB |
BIN
test/ncaaFBlogos/dub.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
test/ncaaFBlogos/elm.png
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
test/ncaaFBlogos/famu.png
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
test/ncaaFBlogos/fla.png
Normal file
|
After Width: | Height: | Size: 73 KiB |
BIN
test/ncaaFBlogos/fsu.png
Normal file
|
After Width: | Height: | Size: 56 KiB |
BIN
test/ncaaFBlogos/gri.png
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
test/ncaaFBlogos/gt.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
test/ncaaFBlogos/gtwn.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
test/ncaaFBlogos/haw.png
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
test/ncaaFBlogos/how.png
Normal file
|
After Width: | Height: | Size: 25 KiB |
BIN
test/ncaaFBlogos/idho.png
Normal file
|
After Width: | Height: | Size: 66 KiB |
BIN
test/ncaaFBlogos/isu.png
Normal file
|
After Width: | Height: | Size: 61 KiB |
BIN
test/ncaaFBlogos/jxst.png
Normal file
|
After Width: | Height: | Size: 40 KiB |
BIN
test/ncaaFBlogos/lut.png
Normal file
|
After Width: | Height: | Size: 81 KiB |
BIN
test/ncaaFBlogos/mesa.png
Normal file
|
After Width: | Height: | Size: 96 KiB |
BIN
test/ncaaFBlogos/mil.png
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
BIN
test/ncaaFBlogos/mor.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
test/ncaaFBlogos/nor.png
Normal file
|
After Width: | Height: | Size: 45 KiB |
BIN
test/ncaaFBlogos/red.png
Normal file
|
After Width: | Height: | Size: 78 KiB |
BIN
test/ncaaFBlogos/sac.png
Normal file
|
After Width: | Height: | Size: 47 KiB |
BIN
test/ncaaFBlogos/sdsu.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
test/ncaaFBlogos/sjsu.png
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
test/ncaaFBlogos/stan.png
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
test/ncaaFBlogos/stet.png
Normal file
|
After Width: | Height: | Size: 47 KiB |
BIN
test/ncaaFBlogos/uab.png
Normal file
|
After Width: | Height: | Size: 56 KiB |
BIN
test/ncaaFBlogos/ucla.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
test/ncaaFBlogos/uga.png
Normal file
|
After Width: | Height: | Size: 31 KiB |
BIN
test/ncaaFBlogos/usa.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
test/ncaaFBlogos/usc.png
Normal file
|
After Width: | Height: | Size: 5.0 KiB |
BIN
test/ncaaFBlogos/usf.png
Normal file
|
After Width: | Height: | Size: 40 KiB |
BIN
test/ncaaFBlogos/yale.png
Normal file
|
After Width: | Height: | Size: 23 KiB |