Skip to main content

Your own youtube assistant

Project description

YouTube Channel Monitor (Pre-release)

This tool monitors selected YouTube channels and generates summary reports of the latest videos. The key benefit is helping you decide whether to watch videos by reading AI-generated summaries first, saving you valuable time.

While there are similar products available (often paid), this solution offers unique values:

  • It provides a daily report of concise summaries of channels' latest update that can replace watching entire videos in many cases.
  • It can get transcript for videos that does not have a subtitle, e.g. videos in Chinese. If you want to read the summary of a video in Chinese, this is the app you are looking for.

The application includes a web-based user interface. Email notification functionality is currently under development. For now, videos of interest must be manually added to the database.

Installation

  1. Clone this repository:
git clone https://github.com/zleung9/youtube-transcribe.git
cd youtube-transcribe
  1. Activate a Python environment using conda or venv:

    Using conda:

    conda create -n youtube-transcribe python=3.10
    conda activate youtube-transcribe
    

    Using venv:

    python -m venv .venv
    # On Windows
    .venv\Scripts\activate
    # On macOS/Linux
    source .venv/bin/activate
    
  2. Install the required packages.

pip install -e . -r requirements.txt
  1. Set up configuration:
cp config.json.template config.json

Edit config.json with your settings:

{
    "model": [
        {
            "title": "openai-gpt-4o",
            "provider": "openai",
            "name": "gpt-4o",
            "api_key": "YOUR_OPENAI_API_KEY"
        },
        {   
            "title": "anthropic-claude-3.5-sonnet",
            "provider": "anthropic",
            "name": "claude-3-5-sonnet-20240620",
            "api_key": "YOUR_ANTHROPIC_API_KEY"
        }
    ],
    "summarizer": {
        "model_title": "anthropic-claude-3.5-sonnet", # by default
        "max_tokens": 4096,
        "temperature": 0.8
    },
}

The configuration file supports multiple AI models for summarization, YouTube channel monitoring with customizable check intervals, and email notification settings. You'll need to provide your own API keys for the services you plan to use.

Usage

Run the main script. The command is yourtube with an "r".

yourtube

This will open a web app in your default browser. For each video the app will fetch subtitles, summarize the content and store it in a sql database.

Most of the time, videos spoken in Chinese doesn't have a subtitle. The app will download the video and transcribe using Whisper to get the subtitles. The downloaded video is then deleted upon the completion of transcription.

Here is a simple demo: Demo Video

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

video_curator-1.0.1.tar.gz (25.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

video_curator-1.0.1-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

Details for the file video_curator-1.0.1.tar.gz.

File metadata

  • Download URL: video_curator-1.0.1.tar.gz
  • Upload date:
  • Size: 25.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for video_curator-1.0.1.tar.gz
Algorithm Hash digest
SHA256 2ec08633b3cabdbd9552d0b7726b434dd6e8140d6cdf46cc937366d9f8cb5f00
MD5 e985d0d91eaf0cdcef087ab6f7fa3606
BLAKE2b-256 40542f5202f877bb00a606eeb6dfaa6740e39257474d004a672f445677684101

See more details on using hashes here.

File details

Details for the file video_curator-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: video_curator-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 23.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for video_curator-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c979742fb63b35788ac2f3d437144962ff51193a33757535b173d50e0c593a48
MD5 7f45ba3855589f98f475e4ebda8c1436
BLAKE2b-256 faadd7277a51174707393e4e08cea754dbf285c53d8ae57941720116c011cd1b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page