Skip to content

Small collection of scripts that call public APIs (GitHub, Hacker News, Weatherstack) and optionally visualize results with Plotly.

Notifications You must be signed in to change notification settings

DomBombardil/api-work

Repository files navigation

API_work

Small collection of scripts that call public APIs (GitHub, Hacker News, Weatherstack) and optionally visualize results with Plotly.

Files

  • hn_submissions.py — prints top Hacker News submissions with comment counts.
  • active_discussions.py — visualizes top HN stories by comment count.
  • python_repos.py — prints popular Python repos from GitHub Search API.
  • python_repos_visual.py — visualizes most‑starred Python repos.
  • other_languages2.py — prints popular C repos from GitHub Search API.
  • weather_api.py — compares temperatures across locations using Weatherstack.

Setup

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Usage

python hn_submissions.py
python active_discussions.py
python python_repos.py
python python_repos_visual.py
python other_languages2.py
python weather_api.py

Notes

  • weather_api.py requires a Weatherstack API key. Replace api_key value with your own key that you can get at the official website.
  • Plotly opens a browser window for charts.

About

Small collection of scripts that call public APIs (GitHub, Hacker News, Weatherstack) and optionally visualize results with Plotly.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages