Hey, guys hope you all doing well. I thought to provide you sometimes the code by which you can do some fun.
Guys this code need a small explanation
1. As we all know that the data which on the website are always on json formats so we need to convert it.
2. The next important point is that you need the API key that you can get for free from Google Cloud Storage.
SOME STEPS YOU NEED TO REMEMBER
STEP1:
Don't do the mistake while writing the channel name.
STEP2:
You can check the live subscriber using this website"https://socialblade.com/"
FOR FACE DETECTION follow this link #1 "https://t.co/nn1Tfc1YUI" ,
#2 "https://t.co/Z8Snwtiam0"
CODE FOR FINGER COUNTING USING OpenCV #3"https://t.co/BBdfAozXE2"
Guys this code need a small explanation
1. As we all know that the data which on the website are always on json formats so we need to convert it.
2. The next important point is that you need the API key that you can get for free from Google Cloud Storage.
import urllib.request import json while True: name = "Name Of channel" key = "Your Key" data = urllib.request.urlopen( "https://www.googleapis.com/youtube/v3/channels?part=statistics&forUsername=" +
name + "&key=" + key).read() subs = json.load(data)["items"][0]["statistics"]["subscribercount"] print(name + " has " + "{:,d}".format(int(subs)) + "subscrin=ber!!!")
SOME STEPS YOU NEED TO REMEMBER
STEP1:
Don't do the mistake while writing the channel name.
STEP2:
You can check the live subscriber using this website"https://socialblade.com/"
FOR FACE DETECTION follow this link #1 "https://t.co/nn1Tfc1YUI" ,
#2 "https://t.co/Z8Snwtiam0"
CODE FOR FINGER COUNTING USING OpenCV #3"https://t.co/BBdfAozXE2"