Skip to content
This repository has been archived by the owner on Jan 19, 2020. It is now read-only.

Latest commit

 

History

History
134 lines (118 loc) · 2.43 KB

README.md

File metadata and controls

134 lines (118 loc) · 2.43 KB

Penn Athletics Python SDK

Python wrapper around the Penn Athletics website to easily access athletics data.

Note: This SDK is currently broken due to a website refresh. Stay tuned!

License

This is published under the MIT license. See LICENSE.

Setup

  • Create new virtualenv
  • Install requirements using 'pip install -r requirements.txt'
  • Run the Penn Athletics API server using 'python runserver.py'

Sports

View All Sports (IDs)

URL http://api.pennlabs.org/athletics
Response Formats JSON

View Available Years

URL http://api.pennlabs.org/athletics/{sportid}
HTTP Methods GET
Current Sport ID's View Section on Sport IDs
Response Formats JSON

Athletes

Roster

URL http://api.pennlabs.org/athletics/{sportid}/{year}/roster
HTTP Methods GET
Current Sport ID's View Section on Sport IDs
Supported Years View Section on years
Response Formats JSON

Search

URL http://api.pennlabs.org/athletics/{sportid}/{year}
HTTP Methods GET
Current Sport ID's View Section on Sport IDs
Supported Years View Section on years
Parameters All sports have name & hometown. Looking at a sample roster from each sport will show all available parameters to search by. May search by any number at once.
Response Formats JSON

Schedules

View Schedule

URL http://api.pennlabs.org/athletics/{sportid}/{year}/schedule
HTTP Methods GET
Current Sport ID's View Section on Sport IDs
Supported Years View Section on years
Response Formats JSON