nelsonic / github-scraper

🕷 🕸 crawl GitHub web pages for insights we can't GET from the API ... 💡
426 stars 96 forks source link

Should we attempt to parse the contribution history (squares/streak) block on the person's profile to derive their latest output? #9

Closed nelsonic closed 4 years ago

nelsonic commented 9 years ago

In addition to the RSS of recent activity #6 should we also attempt to go further back by parsing the "squares"?

nelsonic commented 4 years ago

Got this working a long time ago.

  contrib_matrix: {
    '2019-04-07': { fill: '#ebedf0', count: 0, x: '16', y: '0' },
    '2019-04-08': { fill: '#c6e48b', count: 1, x: '16', y: '15' },
    '2019-04-09': { fill: '#c6e48b', count: 1, x: '16', y: '30' },
    '2019-04-10': { fill: '#c6e48b', count: 2, x: '16', y: '45' },
    '2019-04-11': { fill: '#c6e48b', count: 1, x: '16', y: '60' },
    '2019-04-12': { fill: '#239a3b', count: 5, x: '16', y: '75' },
    '2019-04-13': { fill: '#ebedf0', count: 0, x: '16', y: '90' },
    '2019-04-14': { fill: '#c6e48b', count: 1, x: '15', y: '0' },
...
}