GithubHelp home page GithubHelp logo

stargazers-map's Introduction

Stargazer Map

Find out how famous your project is around the world!

git clone https://github.com/jonathanhacker/stargazers-map
cd stargazers-map
pip3 install -r requirements.txt
./stargazers-map jonathanhacker/stargazers-map

fetch.py fetches information about every stargazer of the given repository via the Github API and stores it in a json file. This file is then read by visualize.py, which looks up all location descriptions on Nominatim. The resulting coordinates are then displayed on an interactive map using folium. Every marker gives information about the respective Github user.

Without authenticating to the Github API you will be limited to 60 requests per hour. To increase this limit to 5000 per hour you can create your own OAuth Token at https://github.com/settings/tokens/new. Put it in your environment to use it (leading space to keep it from being stored in your history):

 export GITHUB_TOKEN="<your OAuth-token>"

If ratelimiting is applied, fetch.py will automatically wait until the limit is reset. Since this can take a while, all progress is stored locally using shelve. The script can be interrupted at any time and will not lose any progress. This applies to both the github API requests as well as the Nominatim requests in visualize.py.
As several thousand avatars can be displayed in the map, they are loaded lazily on click.

For an interactive example you can open example.html in your browser (caution: 4MB).

stargazers-map's People

Contributors

8sd avatar jasminhacker avatar

Stargazers

Nikolaus Schlemm avatar Toan Tran avatar James Agnew avatar

Watchers

 avatar

Forkers

8sd

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.