Skip to content

About

Python API scraper with pagination, rate-limit handling and data cleaning, exporting to an Excel report.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

GitHub Data-Tools Market Scan — Python API Scraper → Clean Data → Excel Report

Project overview

The problem

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).

What the script does

  1. 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.
  2. 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).
  3. 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.

Result

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.

Run it

pip install requests pandas openpyxl
python github_data_scraper.py

Optional: set a GITHUB_TOKEN environment variable for higher rate limits.

Files

  • github_data_scraper.py — the full pipeline
  • github_data_tools_report.xlsx — the Excel report
  • github_data_tools_clean.csv — clean dataset

About

Python API scraper with pagination, rate-limit handling and data cleaning, exporting to an Excel report.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages