Coder Social home page Coder Social logo

github-views-monitor's Introduction

Github views monitor

Monitor views of software distributed through Github. Views corresponds to the individuals visiting the repository page, and takes into account unique individuals. The total number of downloads would also be interesting, but currently that cannot be monitored. Only release download and clones can be recorded, but not zip downloads.

The data is stored in a table named data.tsv with the following headers:

  • repo_name: Name of repository
  • log_timestamp: Time the request was done by us
  • github_timestamp: Time github recorded the data
  • count: Total number of visits
  • unique: Total number of unique visitors

Running

Requires credentials for github api: https://developer.github.com/v3/#authentication You can generate an authentication token here (needs push permission, which can be granted with public_repo scope): https://github.com/settings/tokens

run ./log.py -h for more info

Set up as cronjob to run regularly, for example to run once a week (Sunday at midnight to be specific):

0 0 * * 0 /path/to/github-views-monitor/log.py -o /path/to/github-views-monitor/data.tsv -t /path/to/github-views-monitor/secret_token

Notes

Currently it is just monitoring the data, after sufficient data is available a function to plot it will be added

github-views-monitor's People

Contributors

sergarcia avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.