Skip to content

Build a Streamlit App – A user-friendly interface. Use Google API – Fetch YouTube channel data. Store in SQL Database – Save channel details for easy access. Search & Join Tables – Allow users to query and view data

Notifications You must be signed in to change notification settings

Nambukeerthi/youtube_dataproject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube_Data_Harvesting_and_Warehousing


Youtube Data warehousing

Video Link: Linked-IN Video

Portfolio: Nambu Keerthi

Introduction

The purpose of this project is to create an intuitive Streamlit app that pulls data about a YouTube channel from the Google API, stores it in a MongoDB database, moves it to a SQL data warehouse, and then lets users perform searches for channel details and join tables to view the data.

Domain : Social Media

Technologies Applied

  • Virtual environment (.venv)
  • Python
  • Streamlit
  • Youtube Api
  • AWS RDS Database
  • MySQL

Project Setup

  1. Firstly install all the required extensions in the requirements.txt
pip install -r requirements.txt
  1. Now one need setup a Google Cloud Project on Google Cloud Console, and then enable the Youtube API v3, after that generate the credentials and copy the api_key. Now below is the Python code to use that API.
youtube = build('youtube', 'v3', developerKey="your api_key goes here")
  1. After that one need to create a MySQL Database in there local system. Now below is the Python code to connect to that SQL Database
hostname = "your host name goes here"
database = "your database name goes here"
username = "your username goes here"
pwd = "your password goes here"

mydb = sql.connect(host=hostname, user=username, password=pwd, database=database)
                   
cursor1 = mydb.cursor()
  1. To run the application
streamlit run youtube.py

Project Methodology

  1. First click the "Create DB" button after that the database will created

  2. Enter a YouTube channel ID in the input field and click the "Details" button. The channel details will then be displayed. After that, click the "Upload" button to upload channel details such as Channel ID, Channel Name, Playlist ID, Subscribers, Views, Total Videos, Description, and more, to the SQL database.

  3. Now from the sidebar select the Task Menu and Select the required statement.

  4. According to the selected statement the data will be queried from the SQL Database and will be displayed here on the screen in the streamlit application

  5. through the click the "Drob DB" button the created database and details will droped.

About

Build a Streamlit App – A user-friendly interface. Use Google API – Fetch YouTube channel data. Store in SQL Database – Save channel details for easy access. Search & Join Tables – Allow users to query and view data

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published