Giter VIP home page Giter VIP logo

medium-stat-box's Introduction

screenshot

๐Ÿ“Œ Medium Stat Box

Show your medium stat ๐Ÿ˜
Including followers count and the title and claps of your latest articles

This project is inspired by many projects collected in awesome-pinned-gists

You can see example in my github pinned projects

Breaking Change

update at 2022/04/21.

Because medium change their website's structure, the old verison of this gist do not work, please pull the latest version of this action.

Overview

This project uses Medium RSS API to get personal profile data and uses cheerio to crawl more details such as follower count and claps of articles. The following details will be displayed in pinned gist:

  • Medium username and number of followers
  • Latest 3 articles and their claps count

warning: medium articles with no categories will be filtered

Setup

Prep work

  1. Create a new public GitHub Gist (https://gist.github.com/)
  2. Create a token with the gist scope and copy it. (https://github.com/settings/tokens/new)

Project setup

  1. Fork this repo

  2. Go to the fork repo's Actions tab to enable workflow in fork repo

  3. Go to the fork repo's Settings > Secrets

  4. Add the following environment variables:

  5. Pin your gist

  6. Wait for it to update (the github aciton cron job will run every 8 hours), or you can manually push the repo to trigger the action.

Change Log

2021/10/14 : Update crawler regex for followers

medium-stat-box's People

Contributors

kylemocode avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.