A client wants to understand the open-source data-tools landscape: which tools are popular, what languages they use, and which are still maintained. The raw data sits behind a paginated, rate-limited API and comes back messy (duplicates, blanks, emoji, inconsistent types).
- Extracts 1,000 repository records across 5 topics from the GitHub REST API, with pagination, automatic waiting on rate limits, and retries on network/server errors.
- Cleans the data: removes 29 cross-topic duplicates (keeping every matched topic), fills 65 missing values, strips emoji/control characters, fixes types and dates, and adds derived fields (days since last push, maintenance status).
- Reports to Excel: a filterable data table, a summary sheet driven by live formulas (it recalculates if the data changes), charts, a data dictionary and a run log. Also saves a clean CSV.
971 clean, analysis-ready rows. Example findings: Python leads with 357 repos; 47% of repos are actively maintained, 34% are stale, and 18% carry no licence.
pip install requests pandas openpyxl
python github_data_scraper.py
Optional: set a GITHUB_TOKEN environment variable for higher rate limits.
github_data_scraper.py— the full pipelinegithub_data_tools_report.xlsx— the Excel reportgithub_data_tools_clean.csv— clean dataset
