Creating a jenkins job for automatically getting view and likes of YouTube videos.
Objective: The objective of this blog is to guide users through the process of creating a Jenkins job that automatically fetches the view count and likes of YouTube videos using the YouTube Data API. The job will be triggered periodically and will retrieve video statistics for specified YouTube video IDs stored in a GitHub repository.
Prerequisites:
Access to a Jenkins server.
Access to a GitHub repository to store the list of YouTube video IDs.
Google Cloud Platform (GCP) account with YouTube Data API enabled and API key generated.
Basic knowledge of Jenkins, GitHub, and Google Cloud Platform.
Step 1: Push the code in the github repository.
Step 2: Open jenkins and create a job using freestyle.
Step 3: Click on git and give the repo address after that select execute shell on built step and write command python3 fil_name.py
After that click on build now your project will be ready.
You can match the numbers of views and likes.