Skip to content

dmitrypek/save-github-traffic-stats

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Save Github traffic stats

Rationale

See the blog post https://zonca.dev/2021/10/monitor-github-traffic.html

Requirements

Setup

Rename tok-sample.sh to tok.sh and fill it in with a:

Run

Test it with:

bash collect_data.sh repository_name

This should create a folder with the name of your repository, download the stats and commit them to the repository.

Example output

See the pysm folder for example output

Automate

Then create an entry in a user crontab with crontab -e with the content of crontab.sh

Specify as argument to collect_data.sh the repository name.

Merge the CSVs

Use the merge_csv.sh script from https://github.com/nchah/github-traffic-stats/blob/master/bash/merge-csv.sh

About

Save Github Traffic Stats

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%