Skip to content

Excited to share my new GitHub Traffic Analysis Tool—a Python-based solution that automatically collects detailed traffic data for all your GitHub repositories and presents it via an interactive dashboard. Whether you're tracking views, clones, or releases, this tool makes data insights accessible with a modern, dynamic UI. Check out the live demo

License

Notifications You must be signed in to change notification settings

RomanTsisyk/GitHub-Traffic-Analysis-Tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Traffic Analysis Tool

Overview

This Python script collects detailed traffic statistics for all your GitHub repositories using the GitHub API. It generates:

  • A comprehensive text report (github_traffic_report.txt)
  • An interactive HTML dashboard (dashboard.html) powered by Chart.js

The dashboard features dynamic color generation to ensure that each repository’s data is visually distinct—ideal for users with many repositories.

Features

  • Automatic GitHub User Detection: Retrieves your GitHub username via the API.
  • Traffic Metrics: Fetches views and clones (last 14 days), including daily breakdowns and unique counts.
  • Releases Data: Retrieves release information and download counts (if available).
  • Interactive Dashboard: Visualizes data with responsive, interactive line charts.
  • Modern UI: Clean, responsive design with dynamic color generation for large datasets.
  • Ready-to-use Executable: An attached .exe file (github_traffic_report_v_1.0.exe) is available for non-technical users.

Prerequisites

  • Python 3.6+
  • Libraries: requests, rich, and optionally pyperclip (for clipboard support)
  • A valid GitHub Personal Access Token (PAT) with appropriate permissions

Installation

  1. Clone the repository:

    git clone https://github.com/RomanTsisyk/GitHub-Traffic-Analysis-Tool.git
    cd GitHub-Traffic-Analysis-Tool
    
  2. Install required packages:

    pip install requests rich pyperclip
    

Usage

  1. Copy your GitHub Personal Access Token (PAT) to your clipboard or have it ready.

  2. Run the script:

    python3 github_traffic_report.py
    
  3. When prompted, paste or enter your PAT.

  4. The script will generate:

    • A text report (github_traffic_report.txt)
    • An interactive HTML dashboard (dashboard.html)

Open dashboard.html in your browser or visit the live demo here: Live Dashboard to explore the interactive charts.

Included Files

  • github_traffic_report.py – Main Python script
  • dashboard.html – Interactive dashboard webpage
  • github_traffic_report.txt – Sample text report generated by the script
  • github_traffic_report_v_1.0.exe – Executable version for non-technical users
  • github_traffic_stats.ico – Icon file used for the executable
  • LICENSE – License file (MIT License)

Future Enhancements

  • Additional UI improvements and customization options.
  • Extended analytics and metrics.
  • Integration with other platforms for broader insights.

License

This project is licensed under the MIT License.

Contributing

Contributions are welcome! Please open issues or submit pull requests for any improvements or feature suggestions.

Contact

I'm based in Poland and actively engaged in the open source community. For inquiries, feedback, or collaboration opportunities, feel free to contact me on LinkedIn.

Enjoy analyzing your GitHub traffic and optimizing your projects!

About

Excited to share my new GitHub Traffic Analysis Tool—a Python-based solution that automatically collects detailed traffic data for all your GitHub repositories and presents it via an interactive dashboard. Whether you're tracking views, clones, or releases, this tool makes data insights accessible with a modern, dynamic UI. Check out the live demo

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published