from statistics import YouTubeStats

API_KEY = 'set your youtube data api here'

channel_id ='channel id'

channel_title = 'channel title'


if __name__ == "__main__":
    channel_stats = YouTubeStats(API_KEY, channel_id, channel_title)

    channel_stats.get_channel_stats()

    channel_stats.stats_to_json_file()

dfecc9483db97c935ce32eae7529acd7e3849dea
<mask token>

<mask token>
if __name__ == '__main__':
    channel_stats = YouTubeStats(API_KEY, channel_id, channel_title)
    channel_stats.get_channel_stats()
    channel_stats.stats_to_json_file()

<mask token>
API_KEY = 'set your youtube data api here'
channel_id = 'channel id'
channel_title = 'channel title'
if __name__ == '__main__':
    channel_stats = YouTubeStats(API_KEY, channel_id, channel_title)
    channel_stats.get_channel_stats()
    channel_stats.stats_to_json_file()

from statistics import YouTubeStats
API_KEY = 'set your youtube data api here'
channel_id = 'channel id'
channel_title = 'channel title'
if __name__ == '__main__':
    channel_stats = YouTubeStats(API_KEY, channel_id, channel_title)
    channel_stats.get_channel_stats()
    channel_stats.stats_to_json_file()

from statistics import YouTubeStats

API_KEY = 'set your youtube data api here'

channel_id ='channel id'

channel_title = 'channel title'


if __name__ == "__main__":
    channel_stats = YouTubeStats(API_KEY, channel_id, channel_title)

    channel_stats.get_channel_stats()

    channel_stats.stats_to_json_file()
