Fabriquer un compteur d’abonnés YouTube
In this article you will find additional information to the following video:
API google
Google api site
https://console.developers.google.com
Test
https://www.googleapis.com/youtube/v3/channels?part=statistics&id= »ID_CHAINE »&key= »CLE_API »
Scripts
Python: Display subscribers
https://github.com/EnRootMT/compteurYT/blob/main/compteur.py
Installation of the module google api
python -m pip install --upgrade google-api-python-client
Display subscribers on the led matrix
https://github.com/EnRootMT/compteurYT/blob/main/abos.py
Matrix connection to the Raspberry Pi
Librairies and modules installation
In a terminal type:
sudo usermod -a -G spi,gpio pi
sudo apt-get update
sudo apt-get install build-essential python3-dev python3-pip libfreetype6-dev libjpeg-dev
sudo -i pip install --upgrade pip setuptools
sudo -H pip install --upgrade luma.led_matrix
Scripts
Weather
https://github.com/EnRootMT/compteurYT/blob/main/meteo.py
Subscribers and weather
https://github.com/EnRootMT/compteurYT/blob/main/abos_meteo.py
Sources and documentation
https://www.youtube.com/watch?v=T0DmHRdtqY0