YouTube and Mailchimp livecount

Hi there,

I'm desperately trying to put 2 things on my touchbar :

  • my YouTube subscribers livecount
  • my mailchimp mailing list count

Regarding the youtube one, I've tried many scripts found here and there, nothing seems to work for me.
Regarding Mailchimp, I have no clue how to achieve that.

Looking for some tips and also I'm willing to pay someone to do it for me.
I'm checking mailchimp 20 times a day, it really is a timesaver feature for me.

Thanks guys

MBP 16"
Running Goldenchaos

I don't know about mailchimp, bu I think YouTube has an API that allows to get the count. You need some account key for that.

The api link should look like this:

https://www.googleapis.com/youtube/v3/channels?part=statistics&id=channel_id&key=your_key

Could you post the output of that when you insert your youtube key & channel id?

The code seems to be good, but it doesn't work when I try to add a widget in BTT.
I'm doing something wrong I guess, but all the tutorials I'm checking show a different version of BTT that I currently have :frowning:

Ah so you already got a working ruby script? In that case just use the shell script widget like this:

(use /usr/bin/ruby as launch path and -e as parameter, instead of the hello world stuff, insert your script)

Capture d’écran 2020-01-19 à 20.01.17

Thank you I am so happy !

Ill try to reproduce it for Mailchimp as well

cheers