Merge pull request #387 from rahulkarda/master

Script for fetching Youtube channel info
This commit is contained in:
Bartick Maiti 2022-10-13 11:50:52 +05:30 committed by GitHub
commit 12ff44835f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 28 additions and 0 deletions

View File

@ -1,6 +1,8 @@
# Fetching System Information
This is a simple script that fetches system information for your system.(Windows)
## Improvements
Script for fetching all systems information
## Usage
1. Clone the repo
2. Run python script.py

View File

@ -0,0 +1,8 @@
# Youtube Channel Info
This is a simple script that fetches info about a youtube channel.
## Usage
- Clone the repo
- download the requirements
- add the api key and channel id
- run python script.py

View File

@ -0,0 +1,18 @@
from googleapiclient.discovery import build
youtube = build('youtube', 'v3',
developerKey='Enter API key')
ch_request = youtube.channels().list(
part='statistics',
id='Enter Channel ID')
ch_response = ch_request.execute()
sub = ch_response['items'][0]['statistics']['subscriberCount']
vid = ch_response['items'][0]['statistics']['videoCount']
views = ch_response['items'][0]['statistics']['viewCount']
print("Total Subscriber:- ", sub)
print("Total Number of Videos:- ", vid)
print("Total Views:- ", views)