Skip to content

Instantly share code, notes, and snippets.

View zwithz's full-sized avatar
:bowtie:
meow~

Zack Zhou zwithz

:bowtie:
meow~
View GitHub Profile
@zwithz
zwithz / check_my_followers_stats.js
Created August 22, 2020 00:38
A widget to visually show all my social media's followers stats by @scriptable. For more details -> https://twitter.com/zwithz1998/status/1296834411300716544
// Use @substats, a open source repo on @Github, to fetch all my social medias' stats
const url = "https://api.spencerwoo.com/substats/?source=weibo&queryKey=2028434647&source=twitter&queryKey=zwithz1998&source=jikeFollower&queryKey=e1377acb-40ed-495e-9a73-158273b4090a"
const req = new Request(url)
const json = await req.loadJSON()
const data = json.data.subsInEachSource
// Twitter
const twitterFollowers = data.twitter