掘金总点赞量前 5000 排行发布 | 掘金总关注量前 5000 排行(20190821)

2,811 阅读11分钟

上篇文章 掘金排行前5000大佬 | 掘金文章排行 看这里

项目地址:juejin-spider

欢迎 star ⭐⭐⭐⭐⭐,issue

大家对排名还是很感兴趣的,这篇继续介绍新功能。

feature:

已经实现的

掘金总点赞量前 5000 排行

这里只列出前 100,详细请前往 掘金用户排名(前5000,按用户点赞总量)

更新时间是 20190821 早晨 8 点左右

🎉 等级,👍 点赞数,🏠公司

掘金总关注量前 5000 排行(20190821)

详细前 5000 请看 掘金用户排名(前5000,按关注者)

更新时间是 20190821 早晨 8 点左右

🎉 等级,👦 关注数,🏠公司

文章里面列出的是最新的,想要查看往期排行查看 github tag,选择对应时间,即可查看

一条命令自动执行

根目录下 dailyrun.js

#!/usr/bin/env node
/**
 * 自动执行器
 * 1、自动抓数据,运算排名
 * 2、自动 git add、git commit、git tag、 git push
 */
const request = require('request-promise')
const shell = require('shelljs')

// 获取当前时间
// http://quan.suning.com/getSysTime.do

// eslint-disable-next-line
;(async () => {
  const { sysTime1 } = await request('http://quan.suning.com/getSysTime.do', {
    json: true,
  })

  const timeStr = sysTime1.substr(0, 8)

  // wait
  shell.exec('npm run all')

  // git
  shell.exec('git add *')
  shell.exec(`git commit -m 'chore: update ${timeStr}'`)
  shell.exec('git push')
  shell.exec(`git tag ${timeStr}`)
  shell.exec('git push --tags')
})()

自动获取当天时间,运行 获取数据、计算排行、自动 git add、commit、tag、push

所有说以后每天 node dailyrun.js,再查看 repo 排行页面即可。

后面想做用户排行变化,也就是点赞量排行列表添加一个相比昨日增加了多少点赞量。

也欢迎各位提出改进意见~


项目地址:juejin-spider

欢迎 star ⭐⭐⭐⭐⭐,issue

欢迎关注我的公众号 云影sky