A Python script that uses the GitHub API to find and visualize the most-starred Python repositories.
- Queries the GitHub API for Python repositories with 10,000+ stars
- Extracts repo name, owner, star count, and description
- Creates an interactive bar chart visualization using Plotly
| File | Description |
|---|---|
python_repos.py |
Fetches and prints repo information to the console |
python_repos_visual.py |
Fetches data and creates an interactive Plotly chart |
Status code: 200
Total repositories: 4,500,000+
Repositories returned: 30
Name: public-apis
Owner: public-apis
Stars: 250000+
Description: A collective list of free APIs
...
The script generates an interactive bar chart showing the most-starred Python repos, with hover text displaying the owner and description.
-
Install required packages:
pip install requests plotly
-
Run the console version:
python python_repos.py
-
Run the visualization:
python python_repos_visual.py
- Working with REST APIs
- JSON parsing
- Data visualization with Plotly
- HTTP requests with the
requestslibrary