-
YouTube, the online video-sharing platform, has revolutionized the way we consume and interact with media. Launched in 2005, it has grown into a global phenomenon, serving as a hub for entertainment, education, and community engagement. With its vast user base and diverse content library, YouTube has become a powerful tool for individuals, creators, and businesses to share their stories, express themselves, and connect with audiences worldwide.
-
This project extracts the particular youtube channel data by using the youtube channel id, processes the data, and stores it in the MongoDB database. It has the option to migrate the data to MySQL from MongoDB then analyse the data and give the results depending on the customer questions.
- Virtual code.
- Jupyter notebook.
- Python 3.11.0 or higher.
- MySQL.
- MongoDB.
- Youtube API key.
- pip install google-api-python-client, pymongo, mysql-connector-python, sqlalchemy, pymysql, pymysql, pandas, numpy, plotly-express, streamlit.
( pip install google-api-python-client pymongo mysql-connector-python sqlalchemy pymysql pandas numpy plotly-express streamlit )
Youtube API libraries
- import googleapiclient.discovery
- from googleapiclient.discovery import build
File handling libraries
- import json
- import re
MongoDB
- import pymongo
SQL libraries
- import mysql.connector
- import sqlalchemy
- from sqlalchemy import create_engine
- import pymysql
pandas, numpy
- import pandas as pd
- import numpy as np
Dashboard libraries
- import streamlit as st
- import plotly.express as px
- Extract the particular youtube channel data by using the youtube channel id, with the help of the youtube API developer console.
- After the extraction process, takes the required details from the extraction data and transform it into JSON format.
- After the transformation process, the JSON format data is stored in the MongoDB database, also It has the option to migrate the data to MySQL database from the MongoDB database.
- Create a connection to the MySQL server and access the specified MySQL DataBase by using pymysql library and access tables.
- Filter and process the collected data from the tables depending on the given requirements by using SQL queries and transform the processed data into a DataFrame format.
- Finally, create a Dashboard by using Streamlit and give dropdown options on the Dashboard to the user and select a question from that menu to analyse the data and show the output in Dataframe Table and Bar chart.
- Search channel_id, copy and paste on the input box and click the Get data and stored button in the Data collection zone.
- Select the channel name and click the Migrate to MySQL button to migrate the specific channel data to the MySQL database from MongoDB in the Data Migrate zone.
- Select a Question from the dropdown option you can get the results in Dataframe format or bar chat format.
- Click the below Image