GithubHelp home page GithubHelp logo

doc22940 / github-rank Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jaywcjlove/github-rank

1.0 0.0 0.0 20.02 MB

🕷️Github **和全球用户排名,全球仓库 Star 最多排名(自动日更)。

Home Page: http://jaywcjlove.github.io/github-rank/

License: MIT License

TypeScript 63.62% HTML 36.38%

github-rank's Introduction

Preview: Github | Gitee | UNPKG | Githack | Statically

Github Ranking

Github **用户排名,全球仓库 Star 最多排名,通过 Github API v3 来生成页面数据,排行榜预览,最近还添加了 SegmentFault 思否近期热门开发者头条最近热门分享36Kr 快讯预览

2019年04月20日npm 上发版,版本号以 来定义,如: v19.4.20

现在每天可以自动更新了,利用 GitHub Actions Workflows 通过定时器,每天 00:00 (北京时间早上8:00) 触发 GitHub 的工作流,自动爬数据,将生成的 web 页面提交到 gh-pages 分支,并且自动发布 npm 版本,真香!!

使用

npm install @wcj/github-rank --save-dev

使用可以通过引入数据,来获取排名数据,也可以通过 UNPKG 直接访问用户排行榜

import users from '@wcj/github-rank';
import repos from '@wcj/github-rank/dist/repos.json';
import trendingDaily from '@wcj/github-rank/dist/trending-daily.json';
import trendingWeekly from '@wcj/github-rank/dist/trending-weekly.json';
import trendingMonthly from '@wcj/github-rank/dist/trending-monthly.json';
import users from '@wcj/github-rank';

// 默认 users 输出如下数据:
[
  {
    "login": "jaywcjlove",
    "id": 1680273,
    "node_id": "MDQ6VXNlcjE2ODAyNzM=",
    "avatar_url": "https://avatars1.githubusercontent.com/u/1680273?v=4",
    "gravatar_id": "",
    "url": "https://api.github.com/users/jaywcjlove",
    "html_url": "https://github.com/jaywcjlove",
    "followers_url": "https://api.github.com/users/jaywcjlove/followers",
    "following_url": "https://api.github.com/users/jaywcjlove/following{/other_user}",
    "gists_url": "https://api.github.com/users/jaywcjlove/gists{/gist_id}",
    "starred_url": "https://api.github.com/users/jaywcjlove/starred{/owner}{/repo}",
    "subscriptions_url": "https://api.github.com/users/jaywcjlove/subscriptions",
    "organizations_url": "https://api.github.com/users/jaywcjlove/orgs",
    "repos_url": "https://api.github.com/users/jaywcjlove/repos",
    "events_url": "https://api.github.com/users/jaywcjlove/events{/privacy}",
    "received_events_url": "https://api.github.com/users/jaywcjlove/received_events",
    "type": "User",
    "site_admin": false,
    "score": 1,
    "rank": 117,
    "name": "小弟调调™",
    "company": "ʕ•̫͡•ʔ-̫͡-ʕ•͓͡•ʔ-̫͡-ʔ",
    "blog": "http://wangchujiang.com",
    "location": "Shanghai, China",
    "email": "[email protected]",
    "hireable": true,
    "bio": "(͡·̮̃·̃) 撸码的乐趣 💯 ,“人没了,™代码还在”",
    "public_repos": 78,
    "public_gists": 1,
    "followers": 2519,
    "following": 91,
    "created_at": "2012-04-26T00:30:25Z",
    "updated_at": "2019-04-12T14:27:54Z"
  }
]

获取数据

# 获取 Github (**/全球)用户排行榜(Top 500)
npm run get

# Github 用户获取中途失败,接着获取剩余用户信息
npm run get:users:info

# 获取 Github 趋势榜,Github 仓库排行(Top 500), sifou,36kr,toutiao 的数据
npm run get:o

github-rank's People

Stargazers

 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.