Display basketball/baseball/football player info from CBS api in JSON format.
API url: http://api.cbssports.com/fantasy/players/list?version=3.0&SPORT=baseball&response_format=JSON
- Install Python 3.6
- Create a new virtualenv (
virtualenv venv
) - Activate the virtualenv (
source venv/bin/activate
) - Run
pip install -r requirements.txt
to install dependencies - Run
python app.py
- Connect to
localhost:5000
from web browser - Follow API Endpoint to desired resource. See below
API Endpoints to follow:
To get all players by type of sport: /api/players/all/[SPORT_TYPE]
To get specific player info by player name brief: /api/players/[NAME_BRIEF]