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
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-classification
|
| 5 |
+
- time-series-forecasting
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
tags:
|
| 9 |
+
- github
|
| 10 |
+
- trending
|
| 11 |
+
- repositories
|
| 12 |
+
- software-engineering
|
| 13 |
+
- popularity
|
| 14 |
+
- time-series
|
| 15 |
+
size_categories:
|
| 16 |
+
- 100K<n<1M
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# GitHub Trending Projects (2013-2025)
|
| 20 |
+
|
| 21 |
+
A comprehensive dataset of **423,098 GitHub trending repository entries** spanning **12+ years** (August 2013 - November 2025), scraped from Wayback Machine snapshots of GitHub's trending page.
|
| 22 |
+
|
| 23 |
+
## π― Dataset Overview
|
| 24 |
+
|
| 25 |
+
This dataset captures the evolution of GitHub's trending repositories over time, providing insights into:
|
| 26 |
+
- **Software development trends** across programming languages and domains
|
| 27 |
+
- **Popular open-source projects** and their trending patterns
|
| 28 |
+
- **Community interests** and shifts in developer focus over 12 years
|
| 29 |
+
- **Viral repository dynamics** and sustained popularity patterns
|
| 30 |
+
|
| 31 |
+
**Key Statistics:**
|
| 32 |
+
- π **423,098** trending repository entries
|
| 33 |
+
- ποΈ **14,500** unique repositories
|
| 34 |
+
- π
**128 months** of coverage (2013-08 to 2025-11)
|
| 35 |
+
- β **89.8%** scraping success rate from Wayback Machine
|
| 36 |
+
- π **Pre-processed monthly rankings** with weighted scoring
|
| 37 |
+
|
| 38 |
+
## π Dataset Files
|
| 39 |
+
|
| 40 |
+
### 1. `github-trending-projects-full.csv` (19 MB)
|
| 41 |
+
**Complete daily trending data** - All 423,098 entries
|
| 42 |
+
|
| 43 |
+
| Column | Type | Description |
|
| 44 |
+
|--------|------|-------------|
|
| 45 |
+
| `name` | string | Repository name |
|
| 46 |
+
| `star_count` | integer | Star count (max recorded, may be empty for pre-2020) |
|
| 47 |
+
| `fork_count` | integer | Fork count (max recorded, may be empty for pre-2020) |
|
| 48 |
+
| `repo_owner` | string | Repository owner/organization |
|
| 49 |
+
| `rank` | integer | Position in trending (1-25) |
|
| 50 |
+
| `date` | date | Snapshot date (YYYY-MM-DD) |
|
| 51 |
+
|
| 52 |
+
**Use cases:**
|
| 53 |
+
- Custom time-series analysis
|
| 54 |
+
- Training ML models on trending patterns
|
| 55 |
+
- Analyzing daily trending dynamics
|
| 56 |
+
- Creating custom aggregations (weekly, yearly, etc.)
|
| 57 |
+
- Studying viral repository behavior
|
| 58 |
+
|
| 59 |
+
### 2. `github-top-projects-by-month.csv` (211 KB)
|
| 60 |
+
**Monthly top 25 repositories** - Pre-processed with weighted scoring
|
| 61 |
+
|
| 62 |
+
| Column | Type | Description |
|
| 63 |
+
|--------|------|-------------|
|
| 64 |
+
| `month` | string | Month (YYYY-MM) |
|
| 65 |
+
| `rank` | integer | Monthly rank (1-25) |
|
| 66 |
+
| `repository` | string | Full repository name (owner/name) |
|
| 67 |
+
| `repo_owner` | string | Repository owner |
|
| 68 |
+
| `repo_name` | string | Repository name |
|
| 69 |
+
| `star_count` | integer | Maximum recorded stars |
|
| 70 |
+
| `fork_count` | integer | Maximum recorded forks |
|
| 71 |
+
| `ranking_appearances` | integer | Times appeared in trending that month |
|
| 72 |
+
|
| 73 |
+
**Use cases:**
|
| 74 |
+
- Quick monthly insights and visualizations
|
| 75 |
+
- Dashboard creation
|
| 76 |
+
- Identifying consistently popular projects
|
| 77 |
+
- Trend analysis without processing overhead
|
| 78 |
+
|
| 79 |
+
## π Scoring Methodology
|
| 80 |
+
|
| 81 |
+
Monthly rankings use a **weighted frequency and position-based scoring system**:
|
| 82 |
+
|
| 83 |
+
```
|
| 84 |
+
Score = Ξ£ (25 - rank + 1) for each trending appearance
|
| 85 |
+
|
| 86 |
+
Where:
|
| 87 |
+
- Rank 1 β 25 points
|
| 88 |
+
- Rank 2 β 24 points
|
| 89 |
+
- ...
|
| 90 |
+
- Rank 25 β 1 point
|
| 91 |
+
```
|
| 92 |
+
|
| 93 |
+
**Example:**
|
| 94 |
+
- Project appears 10 times at rank #1 β 250 points
|
| 95 |
+
- Project appears 20 times at rank #10 β 320 points (higher ranked!)
|
| 96 |
+
|
| 97 |
+
This rewards both **consistency** (frequent appearances) and **position** (higher ranks).
|
| 98 |
+
|
| 99 |
+
## π Data Collection
|
| 100 |
+
|
| 101 |
+
**Source:** GitHub Trending page via Wayback Machine (web.archive.org)
|
| 102 |
+
**Period:** August 21, 2013 - November 30, 2025
|
| 103 |
+
**Method:** Python web scraping with BeautifulSoup
|
| 104 |
+
**Snapshots:** 17,127 successfully scraped from 19,064 available
|
| 105 |
+
**Retry Logic:** Up to 15 retries with exponential backoff
|
| 106 |
+
|
| 107 |
+
**HTML Parsing:**
|
| 108 |
+
- Multiple extraction methods for different page structures (2013-2019, 2020+)
|
| 109 |
+
- Handles changes in GitHub's trending page design
|
| 110 |
+
- Robust error handling for incomplete snapshots
|
| 111 |
+
|
| 112 |
+
## β οΈ Known Limitations
|
| 113 |
+
|
| 114 |
+
### 1. **Missing Star/Fork Data (Pre-2020)**
|
| 115 |
+
- **100% of 2013-2019 entries** lack star/fork counts
|
| 116 |
+
- Only **67.8% of dataset** has popularity metrics
|
| 117 |
+
- Cause: Different HTML structure in older Wayback snapshots
|
| 118 |
+
- **Impact:** Cannot compare absolute popularity for historical projects
|
| 119 |
+
|
| 120 |
+
### 2. **Uneven Temporal Distribution**
|
| 121 |
+
- Snapshot frequency: **1 to 31 per month** (31x variance)
|
| 122 |
+
- 2019-2020 heavily over-represented
|
| 123 |
+
- Some months: 25 projects, others: 17,446 projects
|
| 124 |
+
- **Impact:** Monthly scores favor periods with more snapshots
|
| 125 |
+
|
| 126 |
+
### 3. **Star Count Timing Inconsistency**
|
| 127 |
+
- Star counts are "maximum ever recorded" across all snapshots
|
| 128 |
+
- A 2015 project's stars might be from 2025 scraping
|
| 129 |
+
- **Not temporally aligned** - older projects had more time to accumulate stars
|
| 130 |
+
- **Impact:** Can't fairly compare popularity across eras
|
| 131 |
+
|
| 132 |
+
### 4. **Multiple Appearances Bias**
|
| 133 |
+
- Top projects appear 1,700-1,900 times
|
| 134 |
+
- 1,129 projects appear only once
|
| 135 |
+
- Favors "evergreen" educational repos
|
| 136 |
+
- **Impact:** Brief viral projects may be undervalued
|
| 137 |
+
|
| 138 |
+
### 5. **Failed Scrapes**
|
| 139 |
+
- 1,937 URLs failed (10.2%)
|
| 140 |
+
- Mainly 2014-2019 due to SSL/TLS incompatibility
|
| 141 |
+
- Some date ranges completely missing
|
| 142 |
+
- **Impact:** Gaps in temporal coverage
|
| 143 |
+
|
| 144 |
+
**See DATASET_ISSUES.md for detailed analysis**
|
| 145 |
+
|
| 146 |
+
## π Data Quality by Era
|
| 147 |
+
|
| 148 |
+
| Era | Quality | Star Data | Snapshot Density | Grade |
|
| 149 |
+
|-----|---------|-----------|------------------|-------|
|
| 150 |
+
| **2013-2019** | Limited | β 0% | Low-Medium | **C+** |
|
| 151 |
+
| **2020-2025** | Excellent | β
100% | High | **A-** |
|
| 152 |
+
|
| 153 |
+
**Recommendation:** Use 2020-2025 data for analyses requiring star/fork counts
|
| 154 |
+
|
| 155 |
+
## π‘ Usage Examples
|
| 156 |
+
|
| 157 |
+
### Load Full Dataset (Python)
|
| 158 |
+
|
| 159 |
+
```python
|
| 160 |
+
import pandas as pd
|
| 161 |
+
|
| 162 |
+
# Load complete dataset
|
| 163 |
+
df = pd.read_csv('github-trending-projects-full.csv')
|
| 164 |
+
|
| 165 |
+
# Filter to 2020+ (with star data)
|
| 166 |
+
df_recent = df[df['date'] >= '2020-01-01']
|
| 167 |
+
|
| 168 |
+
# Get top trending projects of 2024
|
| 169 |
+
df_2024 = df[df['date'].str.startswith('2024')]
|
| 170 |
+
top_2024 = df_2024.groupby(['repo_owner', 'name']).size().sort_values(ascending=False).head(10)
|
| 171 |
+
print(top_2024)
|
| 172 |
+
```
|
| 173 |
+
|
| 174 |
+
### Load Monthly Top (Python)
|
| 175 |
+
|
| 176 |
+
```python
|
| 177 |
+
import pandas as pd
|
| 178 |
+
|
| 179 |
+
# Load pre-processed monthly rankings
|
| 180 |
+
df_monthly = pd.read_csv('github-top-projects-by-month.csv')
|
| 181 |
+
|
| 182 |
+
# Get November 2025 top 10
|
| 183 |
+
nov_2025 = df_monthly[df_monthly['month'] == '2025-11'].head(10)
|
| 184 |
+
print(nov_2025[['rank', 'repository', 'star_count', 'ranking_appearances']])
|
| 185 |
+
|
| 186 |
+
# Find projects that consistently rank #1
|
| 187 |
+
rank_1_projects = df_monthly[df_monthly['rank'] == 1]['repository'].value_counts()
|
| 188 |
+
print(rank_1_projects.head(10))
|
| 189 |
+
```
|
| 190 |
+
|
| 191 |
+
### Time Series Analysis
|
| 192 |
+
|
| 193 |
+
```python
|
| 194 |
+
import pandas as pd
|
| 195 |
+
import matplotlib.pyplot as plt
|
| 196 |
+
|
| 197 |
+
df = pd.read_csv('github-trending-projects-full.csv')
|
| 198 |
+
df['date'] = pd.to_datetime(df['date'])
|
| 199 |
+
|
| 200 |
+
# Analyze a specific project over time
|
| 201 |
+
project = 'microsoft/vscode'
|
| 202 |
+
project_df = df[(df['repo_owner'] == 'microsoft') & (df['name'] == 'vscode')]
|
| 203 |
+
|
| 204 |
+
# Plot trending frequency over time
|
| 205 |
+
monthly_counts = project_df.groupby(project_df['date'].dt.to_period('M')).size()
|
| 206 |
+
monthly_counts.plot(title=f'{project} Trending Frequency')
|
| 207 |
+
plt.ylabel('Days in Trending')
|
| 208 |
+
plt.show()
|
| 209 |
+
```
|
| 210 |
+
|
| 211 |
+
### Language Trends (requires additional metadata)
|
| 212 |
+
|
| 213 |
+
```python
|
| 214 |
+
# Note: Language data not included in this dataset
|
| 215 |
+
# Would need to join with GitHub API data or another dataset
|
| 216 |
+
```
|
| 217 |
+
|
| 218 |
+
## π Research Applications
|
| 219 |
+
|
| 220 |
+
This dataset enables analysis of:
|
| 221 |
+
|
| 222 |
+
1. **Trending Dynamics**
|
| 223 |
+
- What makes a repository go viral?
|
| 224 |
+
- How long do projects stay trending?
|
| 225 |
+
- Seasonal patterns in software development
|
| 226 |
+
|
| 227 |
+
2. **Technology Adoption**
|
| 228 |
+
- Rise and fall of programming languages
|
| 229 |
+
- Framework popularity over time
|
| 230 |
+
- Shift from monolithic to microservices
|
| 231 |
+
|
| 232 |
+
3. **Open Source Evolution**
|
| 233 |
+
- Growth of educational repositories
|
| 234 |
+
- Corporate open source contributions
|
| 235 |
+
- Regional trending patterns
|
| 236 |
+
|
| 237 |
+
4. **Predictive Modeling**
|
| 238 |
+
- Forecasting future trending projects
|
| 239 |
+
- Identifying early viral indicators
|
| 240 |
+
- Star growth prediction models
|
| 241 |
+
|
| 242 |
+
5. **Developer Behavior**
|
| 243 |
+
- Community interest shifts
|
| 244 |
+
- Popular project categories
|
| 245 |
+
- Documentation and tutorial demand
|
| 246 |
+
|
| 247 |
+
## π Example Insights
|
| 248 |
+
|
| 249 |
+
**Most Consistently Trending (2020-2025):**
|
| 250 |
+
1. `jwasham/coding-interview-university` - 1,948 appearances
|
| 251 |
+
2. `TheAlgorithms/Python` - 1,891 appearances
|
| 252 |
+
3. `donnemartin/system-design-primer` - 1,865 appearances
|
| 253 |
+
|
| 254 |
+
**Trending Patterns:**
|
| 255 |
+
- Educational repositories dominate long-term trending
|
| 256 |
+
- AI/ML projects saw massive spike in 2023-2024
|
| 257 |
+
- Web frameworks remain consistently popular
|
| 258 |
+
|
| 259 |
+
## π License
|
| 260 |
+
|
| 261 |
+
**MIT License**
|
| 262 |
+
|
| 263 |
+
This dataset is released under the MIT License. You can:
|
| 264 |
+
- β
Use for commercial purposes
|
| 265 |
+
- β
Modify and distribute
|
| 266 |
+
- β
Use in research (attribution appreciated!)
|
| 267 |
+
- β
Include in proprietary software
|
| 268 |
+
|
| 269 |
+
**Source Data:** Wayback Machine (public archive)
|
| 270 |
+
**Original Content:** GitHub Trending pages
|
| 271 |
+
|
| 272 |
+
## π Acknowledgments
|
| 273 |
+
|
| 274 |
+
- **GitHub** for maintaining the trending page
|
| 275 |
+
- **Internet Archive** for the Wayback Machine
|
| 276 |
+
- **Open Source Community** for creating amazing projects
|
| 277 |
+
|
| 278 |
+
## π§ Contact & Contributions
|
| 279 |
+
|
| 280 |
+
- **Issues/Questions:** Open an issue on the dataset repository
|
| 281 |
+
- **Data Errors:** Please report any inconsistencies
|
| 282 |
+
- **Contributions:** Additional metadata or corrections welcome
|
| 283 |
+
|
| 284 |
+
## π Citation
|
| 285 |
+
|
| 286 |
+
If you use this dataset in your research, please cite:
|
| 287 |
+
|
| 288 |
+
```bibtex
|
| 289 |
+
@dataset{github_trending_2013_2025,
|
| 290 |
+
title={GitHub Trending Projects Dataset (2013-2025)},
|
| 291 |
+
author={Your Name},
|
| 292 |
+
year={2025},
|
| 293 |
+
publisher={Hugging Face},
|
| 294 |
+
url={https://huggingface.co/datasets/YOUR_USERNAME/github-top-projects}
|
| 295 |
+
}
|
| 296 |
+
```
|
| 297 |
+
|
| 298 |
+
## π Related Datasets
|
| 299 |
+
|
| 300 |
+
- GitHub Archive (gharchive.org) - Complete GitHub event stream
|
| 301 |
+
- GHTorrent - GitHub data for research
|
| 302 |
+
- Libraries.io - Package manager dependency data
|
| 303 |
+
|
| 304 |
+
## π
Updates
|
| 305 |
+
|
| 306 |
+
- **2025-12:** Initial release (2013-08 to 2025-11)
|
| 307 |
+
- Future updates planned quarterly
|
| 308 |
+
|
| 309 |
+
## βοΈ Technical Details
|
| 310 |
+
|
| 311 |
+
**Scraping Configuration:**
|
| 312 |
+
- Retry attempts: 15 with exponential backoff
|
| 313 |
+
- Delay between requests: 4-6 seconds (randomized)
|
| 314 |
+
- Timeout: 45 seconds per request
|
| 315 |
+
- User-Agent: Mozilla/5.0 (standard browser)
|
| 316 |
+
|
| 317 |
+
**Data Processing:**
|
| 318 |
+
- Deduplication: By date + repo + rank
|
| 319 |
+
- Sorting: Chronological (newest first)
|
| 320 |
+
- Encoding: UTF-8
|
| 321 |
+
- Format: CSV with headers
|
| 322 |
+
|
| 323 |
+
## π Known Issues
|
| 324 |
+
|
| 325 |
+
See `DATASET_ISSUES.md` for comprehensive list including:
|
| 326 |
+
- Missing data gaps
|
| 327 |
+
- Star count timing issues
|
| 328 |
+
- Temporal distribution variance
|
| 329 |
+
- Recommended usage guidelines
|
| 330 |
+
|
| 331 |
+
---
|
| 332 |
+
|
| 333 |
+
**Last Updated:** December 2025
|
| 334 |
+
**Dataset Version:** 1.0
|
| 335 |
+
**Status:** β
Complete and ready for use
|