Skip to content
A badge generator for count visitor of your README
Python
Branch: master
Clone or download
jwenjian Update README.md
add translation README link
Latest commit 99ff7e3 Aug 7, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore add tinydb support Jul 6, 2019
LICENSE Initial commit Jun 27, 2019
Procfile add heroku related file Jul 3, 2019
README.md Update README.md Aug 7, 2019
db.sql add db.sql Jul 21, 2019
main.py add db.sql Jul 21, 2019
requirements.txt using postgresql as persistence plan to store visitor count Jul 6, 2019
runtime.txt add heroku related file Jul 3, 2019

README.md

visitor-count-badge

简体中文

A badge generator for count visitor of your README, it support 2 endpoints now:

  1. total.svg

count total visitors to your README or Issue

  1. today.svg

count visitors only in current day(server timezone), and be noted: this will NOT increase the total count

Demo

See below badge, try to refresh current page then see again 🎉

Install dependencies

  1. pip install -r requirements.txt

IDE run

FLASK_APP=main.py flask run

How to use

Add a image to your README file:

![Total visitor](https://visitor-count-badge.herokuapp.com/total.svg?repo_id=)
![Visitors in today](https://visitor-count-badge.herokuapp.com/today.svg?repo_id=)

in which:

repo_id:

An unique string represent your current README, recommend as following pattern

  • For README:

{your.github.login}.{your.repo.id}, for example: repo_id=jwenjian.ghiblog

  • For Issue:

{repo.owner.login}.{repo.id}.issue.{your.issue.id}, for example, repo_id=jwenjian.ghiblog.issue.1

You can’t perform that action at this time.