spencerwooo / substats

( `д′) how many followers do i have? how many!
https://substats.swo.moe
MIT License
813 stars 56 forks source link

Add support for 少数派 metrics #20

Closed hayschan closed 3 years ago

hayschan commented 3 years ago

Currently, there is follower counts support in Substats. It would be nice if it support metrics such as read counts, word count, etc. image

spencerwooo commented 3 years ago

You can easily fetch said metrics from SSPAI's own API without authentication if you want:

GET https://sspai.com/api/v1/user/slug/info/get?slug={user_id}

Substats' main purpose is to fetch the number of fans / followers and provide a easy-enough interface to add them up (hence the feature introduced in Multiple sources with a single query string). Although there are some exceptions (like the Reddit Karma and Jike highlights...), I don't think I'll be adding these specific metrics from SSPAI to the Substats' API. Thanks for understanding.

spencerwooo commented 3 years ago

Another reason why I specifically included Jike's metric and not SSPAI's metrics is that SSPAI's API is simple enough to use directly with Shields.io but Jike's stats require a bit of hacking and definitely require a third-party API proxy service.