5 Star 44 Fork 7

小弟调调 / github-rank

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 6.36 KB
一键复制 编辑 原始数据 按行查看 历史
github-actions[bot] 提交于 2023-10-13 17:57 . doc: update README.md.

[中文] Preview: Github | Gitee | UNPKG | Githack | Statically

Github Ranking

Github global/Chinese user rankings, global repositories Star rankings, page data generated through Github API v3, ranking preview.

Released on npm from April 20, 2019, the version number is defined by year, month, and day, such as: v19.4.20.

Now it can be updated automatically every day, using GitHub Actions Workflows to trigger the GitHub workflow every day at 00:00 (8:00 am Beijing time) through the timer, automatically crawl the data, submit the generated web page to the gh-pages branch, and Automatically publish npm version, really fragrant! !

Update date: 2023-10-13 17:57:37

Usage

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

Users can obtain ranking data by importing data, or directly access the user leaderboard through 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';

// By default users outputs the following data:
[
  {
    "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": "wowohoo@qq.com",
    "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"
  }
]

Crawlers get data

# Get Github (China/Global) user rankings (Top 900)
npm run get

# Github user acquisition fails in the middle, and then the remaining user information is acquired
npm run get:users:info

# Get Github trend list, Github repository ranking (Top 500) data
npm run get:o

Contributors

As always, thanks to our amazing contributors!

小弟调调 Mend Renovate Leon-kfd Feei Huang ZhenYong

Made with contributors, automatically generated.

License

Licensed under the MIT License.

TypeScript
1
https://gitee.com/jaywcjlove/github-rank.git
git@gitee.com:jaywcjlove/github-rank.git
jaywcjlove
github-rank
github-rank
master

搜索帮助