Skip to content

Mariosmsk/github_traffic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

github_traffic

Get traffic of your repository. GitHub provides traffic data for the last 14 days. This code can be used to run one time of day or every 14 days to collect the traffic.

Python requirements:
pip install githubpy

pip install pathlib

traffic.csv:

#Date, Visitors, Views
2019-07-04T00:00:00Z, 7, 15
2019-07-05T00:00:00Z, 13, 93
2019-07-06T00:00:00Z, 6, 7
2019-07-07T00:00:00Z, 10, 55
2019-07-08T00:00:00Z, 16, 321
2019-07-09T00:00:00Z, 18, 282
2019-07-10T00:00:00Z, 11, 171
2019-07-11T00:00:00Z, 10, 145
2019-07-12T00:00:00Z, 15, 182
2019-07-13T00:00:00Z, 8, 18
2019-07-14T00:00:00Z, 5, 14
2019-07-15T00:00:00Z, 3, 85
2019-07-16T00:00:00Z, 10, 242
2019-07-17T00:00:00Z, 15, 314
2019-07-18T00:00:00Z, 15, 248

totals.csv:

Total visitors: 162
Total views: 2192

About

Get traffic of your repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages