Skip to content

Latest commit

 

History

History

Youtube API + Data Analysis

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

YouTube API + Data Analysis

Overview

A Python project for scraping YouTube data using the YouTube Data API & analyzing the data. The project mainly focuses on extracting channel statistics and video details for analysis.

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/faizanxmulla/python-portfolio.git
    cd python-portfolio
  2. Install required packages:

    pip install -r requirements.txt
  3. Set up your Youtube API key:

    • Generate your API Key here.
    • Set the API Key as an environment variable:
      export YT_API_KEY="your-api-key"

Project Structure

  • yt.ipynb: Jupyter Notebook containing the main project code.
  • requirements.txt: List of required Python packages.

Usage

  1. Open the Jupyter Notebook (yt.ipynb) in your preferred environment.
  2. Follow the steps outlined in the notebook to:
    • Set up the YouTube API.
    • Scrape channel statistics.
    • Scrape video details.
    • Analyze and visualize the data.

References