@wcj/github-rank 22.11.4 → 22.11.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -18
- package/dist/repos.json +26072 -26062
- package/dist/trending-daily.json +167 -167
- package/dist/trending-monthly.json +153 -153
- package/dist/trending-weekly.json +167 -167
- package/dist/users.china.json +13189 -13435
- package/dist/users.json +589 -593
- package/package.json +1 -1
- package/web/CONTRIBUTORS.svg +20 -0
- package/web/data/repos.json +26072 -26062
- package/web/data/trending-daily.json +167 -167
- package/web/data/trending-monthly.json +153 -153
- package/web/data/trending-weekly.json +167 -167
- package/web/data/users.china.json +13189 -13435
- package/web/data/users.json +589 -593
- package/web/index.html +16574 -15511
- package/web/repos.html +3334 -3327
- package/web/trending-monthly.html +137 -134
- package/web/trending-weekly.html +149 -142
- package/web/trending.html +146 -147
- package/web/users.china.html +16574 -15511
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Preview: [Github](http://jaywcjlove.github.io/github-rank/) | [Gitee](http://jaywcjlove.gitee.io/github-rank) | [UNPKG](https://unpkg.com/@wcj/github-rank/web/index.html) | [Githack](https://raw.githack.com/jaywcjlove/github-rank/gh-pages/index.html) | [Statically](https://cdn.statically.io/gh/jaywcjlove/github-rank/gh-pages/index.html)
|
|
1
|
+
[[中文](./README-zh.md)] Preview: [Github](http://jaywcjlove.github.io/github-rank/) | [Gitee](http://jaywcjlove.gitee.io/github-rank) | [UNPKG](https://unpkg.com/@wcj/github-rank/web/index.html) | [Githack](https://raw.githack.com/jaywcjlove/github-rank/gh-pages/index.html) | [Statically](https://cdn.statically.io/gh/jaywcjlove/github-rank/gh-pages/index.html)
|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
4
|
<a href="https://jaywcjlove.github.io/github-rank">
|
|
@@ -24,28 +24,26 @@ Preview: [Github](http://jaywcjlove.github.io/github-rank/) | [Gitee](http://jay
|
|
|
24
24
|
</a>
|
|
25
25
|
</p>
|
|
26
26
|
|
|
27
|
-
Github
|
|
27
|
+
Github global/Chinese user rankings, global repositories Star rankings, page data generated through Github API v3, [ranking preview](http://jaywcjlove.github.io/github-rank/).
|
|
28
28
|
|
|
29
|
-
- [Github
|
|
30
|
-
- [Github
|
|
31
|
-
- [Github
|
|
32
|
-
- [Github
|
|
33
|
-
- ~~[SegmentFault 思否 - 近期热门](http://jaywcjlove.github.io/github-rank/sifou-daily.html) [**`日`**](http://jaywcjlove.github.io/github-rank/sifou-daily.html) [**`周`**](http://jaywcjlove.github.io/github-rank/sifou-weekly.html) [**`月`**](http://jaywcjlove.github.io/github-rank/sifou-monthly.html)~~
|
|
34
|
-
- ~~[开发者头条 - 最近热门分享](http://jaywcjlove.github.io/github-rank/toutiao-7.html) [**`7天`**](http://jaywcjlove.github.io/github-rank/toutiao-7.html) [**`30天`**](http://jaywcjlove.github.io/github-rank/toutiao-30.html) [**`90天`**](http://jaywcjlove.github.io/github-rank/toutiao-90.html)~~
|
|
29
|
+
- [Github **Global** User Followers Ranking Preview](http://jaywcjlove.github.io/github-rank/)
|
|
30
|
+
- [Github **China** User Followers Ranking Preview](http://jaywcjlove.github.io/github-rank/users.china.html)
|
|
31
|
+
- [Github Global repositories Star Most Ranking Preview](http://jaywcjlove.github.io/github-rank/repos.html)
|
|
32
|
+
- [Github community trend list daily, weekly, monthly preview](http://jaywcjlove.github.io/github-rank/trending.html) [**`daily`**](http://jaywcjlove.github.io/github-rank/trending.html) [**`weekly`**](http://jaywcjlove.github.io/github-rank/trending-weekly.html) [**`monthly`**](http://jaywcjlove.github.io/github-rank/trending-monthly.html)
|
|
35
33
|
|
|
36
|
-
|
|
34
|
+
Released on [`npm`](https://www.npmjs.com/package/@wcj/github-rank) from `April 20, 2019,` the version number is defined by `year`, `month`, and `day`, such as: `v19.4.20`.
|
|
37
35
|
|
|
38
|
-
|
|
36
|
+
Now it can be updated automatically every day, using [GitHub Actions Workflows](https://github.com/actions/starter-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](https://www.npmjs.com/package/@wcj/github-rank) version, really fragrant! !
|
|
39
37
|
|
|
40
|
-
|
|
38
|
+
Update date: <!--GAMFC-->2022-11-06 05:51:31<!--GAMFC-END-->
|
|
41
39
|
|
|
42
|
-
##
|
|
40
|
+
## Usage
|
|
43
41
|
|
|
44
42
|
```bash
|
|
45
43
|
npm install @wcj/github-rank --save-dev
|
|
46
44
|
```
|
|
47
45
|
|
|
48
|
-
|
|
46
|
+
Users can obtain ranking data by importing data, or directly access the [user leaderboard](https://unpkg.com/@wcj/github-rank/web/index.html) through [UNPKG](https://unpkg.com/@wcj/github-rank/dist/users.json).
|
|
49
47
|
|
|
50
48
|
```js
|
|
51
49
|
import users from '@wcj/github-rank';
|
|
@@ -58,7 +56,7 @@ import trendingMonthly from '@wcj/github-rank/dist/trending-monthly.json';
|
|
|
58
56
|
```js
|
|
59
57
|
import users from '@wcj/github-rank';
|
|
60
58
|
|
|
61
|
-
//
|
|
59
|
+
// By default users outputs the following data:
|
|
62
60
|
[
|
|
63
61
|
{
|
|
64
62
|
"login": "jaywcjlove",
|
|
@@ -98,16 +96,16 @@ import users from '@wcj/github-rank';
|
|
|
98
96
|
]
|
|
99
97
|
```
|
|
100
98
|
|
|
101
|
-
##
|
|
99
|
+
## Crawlers get data
|
|
102
100
|
|
|
103
101
|
```bash
|
|
104
|
-
#
|
|
102
|
+
# Get Github (China/Global) user rankings (Top 900)
|
|
105
103
|
npm run get
|
|
106
104
|
|
|
107
|
-
# Github
|
|
105
|
+
# Github user acquisition fails in the middle, and then the remaining user information is acquired
|
|
108
106
|
npm run get:users:info
|
|
109
107
|
|
|
110
|
-
#
|
|
108
|
+
# Get Github trend list, Github repository ranking (Top 500) data
|
|
111
109
|
npm run get:o
|
|
112
110
|
```
|
|
113
111
|
|