Back to articles
GitHub API: Analyze Any Developer Portfolio in 30 Lines of Python (No Auth Required)

GitHub API: Analyze Any Developer Portfolio in 30 Lines of Python (No Auth Required)

via Dev.to PythonAlex Spinov

A recruiter friend told me she spends 20 minutes per candidate checking their GitHub. She clicks through repos, reads READMEs, counts stars. I built her a script that does it in 3 seconds. No API key needed. The Problem GitHub profiles tell a story — but reading that story manually is slow. You want to know: What languages does this person actually use? Do they maintain their projects or abandon them? Are their repos getting traction (stars, forks)? How active have they been recently? The GitHub REST API gives you all of this — without authentication for public data. Quick Start: 30-Line Portfolio Analyzer import requests from collections import Counter from datetime import datetime def analyze_portfolio ( username ): repos = requests . get ( f " https://api.github.com/users/ { username } /repos " , params = { " per_page " : 100 , " sort " : " updated " } ). json () if isinstance ( repos , dict ): # Error response return f " Error: { repos . get ( ' message ' , ' Unknown ' ) } " langua

Continue reading on Dev.to Python

Opens in a new tab

Read Full Article
9 views

Related Articles