# Accessing and storing GitHub traffic data automatically

**URL:** <https://discourse.pangeo.io/t/accessing-and-storing-github-traffic-data-automatically/986>\
**Category:** Science\
**Created:** [October 28, 2020, 6:37pm UTC](https://discourse.pangeo.io/t/accessing-and-storing-github-traffic-data-automatically/986 "2020-10-28T18:37:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JessicaS11](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pangeo.io/jessicas11/32/229_2.png) [@JessicaS11](https://discourse.pangeo.io/u/JessicaS11)\
**Post date:** [October 28, 2020, 6:37pm UTC](https://discourse.pangeo.io/t/accessing-and-storing-github-traffic-data-automatically/986/1 "2020-10-28T18:37:03Z")

</div>

Does anyone have any recommendations for tools/metrics for tracking package use/success? For starters, I’d like to track GitHub traffic, since only the last 14 days are available within GitHub. I know this is possible with the GitHub API, and I’ve found multiple tools to do so, but I’m wondering if anyone has experience with/would recommend any that are currently being maintained?

Beyond those statistics, we’ve got workshop survey data, but are looking for other suggestions on ways to best track our reach (since obviously GitHub statistics cannot tell the full story if people are continuing to use the software or access it through a shared environment (i.e. don’t download it directly).

---

<div class="post-metadata">

**Author:** ![andersy005](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pangeo.io/andersy005/32/31_2.png) [@andersy005](https://discourse.pangeo.io/u/andersy005)\
**Post date:** [October 28, 2020, 7:42pm UTC](https://discourse.pangeo.io/t/accessing-and-storing-github-traffic-data-automatically/986/2 "2020-10-28T19:42:56Z")

</div>

> [@JessicaS11](#):
>
> Beyond those statistics, we’ve got workshop survey data, but are looking for other suggestions on ways to best track our reach (since obviously GitHub statistics cannot tell the full story if people are continuing to use the software or access it through a shared environment (i.e. don’t download it directly).

You may find this blog post by Matt Rocklin useful: [Estimating Users](https://blog.dask.org/2020/01/14/estimating-users)

---

<div class="post-metadata">

**Author:** ![JessicaS11](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pangeo.io/jessicas11/32/229_2.png) [@JessicaS11](https://discourse.pangeo.io/u/JessicaS11)\
**Post date:** [October 30, 2020, 5:34pm UTC](https://discourse.pangeo.io/t/accessing-and-storing-github-traffic-data-automatically/986/3 "2020-10-30T17:34:05Z")

</div>

Thanks @andersy005! That was a great read, and I’m probably going to use some of the pypistats functionality.

Any recommendations for a library/tool/GitHub action to track GitHub statistics?

---

<div class="post-metadata">

**Author:** ![andersy005](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pangeo.io/andersy005/32/31_2.png) [@andersy005](https://discourse.pangeo.io/u/andersy005)\
**Post date:** [October 30, 2020, 7:29pm UTC](https://discourse.pangeo.io/t/accessing-and-storing-github-traffic-data-automatically/986/4 "2020-10-30T19:29:14Z")

</div>

> Thanks @andersy005! That was a great read, and I’m probably going to use some of the pypistats functionality.

You’re welcome!

> [@JessicaS11](#):
>
> Any recommendations for a library/tool/GitHub action to track GitHub statistics?

If you’re interested in

- the “git” part of the project, [git-quick-stats](https://github.com/arzzen/git-quick-stats) is a great command line tool. Of course, this won’t tell you much about the traffic (such as the repo visits, etc) on GitHub.

- the “GitHub” part (i.e. stats on community activity), give [repository-traffic-action](https://github.com/sangonzal/repository-traffic-action) a try. I haven’t used it myself though 🙂

Also, when you get a chance, check this project: [Github Statistics](https://vesoft-inc.github.io/github-statistics/) out and see if it’s any useful… Here is a couple screenshots from the website:

 ![Screen Shot 2020-10-30 at 1.24.19 PM](https://canada1.discourse-cdn.com/flex030/uploads/pangeo/original/1X/5d430ba6928c549e02b09e9abb4bc4d59059b163.png) ![Screen Shot 2020-10-30 at 1.23.56 PM](https://canada1.discourse-cdn.com/flex030/uploads/pangeo/original/1X/630fe1c199c2c92aca0b636b77c1f2e6ebbb39a3.png)

---

<div class="post-metadata">

**Author:** ![JessicaS11](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pangeo.io/jessicas11/32/229_2.png) [@JessicaS11](https://discourse.pangeo.io/u/JessicaS11)\
**Post date:** [November 5, 2020, 5:50pm UTC](https://discourse.pangeo.io/t/accessing-and-storing-github-traffic-data-automatically/986/5 "2020-11-05T17:50:17Z")

</div>

Thanks again, @andersy005!

> [@andersy005](#):
>
> give [repository-traffic-action](https://github.com/sangonzal/repository-traffic-action) a try. I haven’t used it myself though

This was exactly what I was looking for, but I didn’t come across this particular one in my searches. It’s all set up in icepyx and I’ll check that the cron ran as expected on Monday!

> [@andersy005](#):
>
> check this project: [https://vesoft-inc.github.io/github-statistics/](https://vesoft-inc.github.io/github-statistics/) out

This project was fun to have quick visuals of GitHub stats through time (it’s similar to [repo-analytics](https://repo-analytics.github.io/) without the requirement to grant any sort of access to it; I will admit I’m a fan of the xkcd-style graphs though!). It bumps up against the issue I was having with a few other tools I found, which is that it doesn’t give you the underlying data or actually help with tracking.

For anyone wanting to check out what I implemented, see the [icepyx](https://github.com/icesat2py/icepyx) repo on GitHub and check out our [documentation](https://icepyx.readthedocs.io/en/latest/) in the coming days (after the PR is reviewed!) for a new tracking section!
