Bballfast
2017 Example NBA basketball website using nba_py for people to learn how to use NBA Stats Python API.
Install / Use
/learn @huyqle3/BballfastREADME
bballfast

Requirements
- Have
pipinstalled.sudo apt-get install pip pip install -r requirements.txtOPTIONALYou can also install the latest version of nba_py
Create YouTube and Reddit API keys
Create YouTube Data v3 API Credentials Key at: https://console.developers.google.com/apis/dashboard
Create Reddit Client ID and Client Secret Key at: https://www.reddit.com/prefs/apps
Put the YouTube and Reddit API keys inside __init__.py.
# YouTube Developer Key
DEVELOPER_KEY = ""
YOUTUBE_API_SERVICE_NAME = "youtube"
YOUTUBE_API_VERSION = "v3"
# Example Reddit API Key
reddit = praw.Reddit(client_id="gjOCeed5Odsd3a",
client_secret="O0GP_rbfgRo_AxW1dyXCjteqGcd",
user_agent="bballfast by /u/microwavesam")
- If you don't want YouTube functionality, comment out the contents of the YouTube function.
def youtube_search(q, max_results=25, freedawkins=None):
"""Searches YouTube for q and returns YouTube link.
"""
"""
youtube = build(YOUTUBE_API_SERVICE_NAME, YOUTUBE_API_VERSION,
developerKey=DEVELOPER_KEY)
# Call the search.list method to retrieve results matching the specified
# query term.
if (freedawkins):
search_response = youtube.search().list(q=q,
part="id,snippet",
maxResults=max_results,
channelId="UCEjOSbbaOfgnfRODEEMYlCw").execute()
else:
search_response = youtube.search().list(q=q,
part="id,snippet",
maxResults=max_results,
type="video").execute()
# Add each result to the appropriate list, and then display the lists of
# matching videos, channels, and playlists.
for search_result in search_response.get("items", []):
if search_result["id"]["kind"] == "youtube#video":
return "//www.youtube.com/embed/" + search_result["id"]["videoId"]
"""
return False
Run locally
To run the server locally at http://127.0.0.1:8080.
python __init__.py

Related Skills
node-connect
346.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
107.6kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
107.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
346.8kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
