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.2.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.2-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: video_curator-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 aba6134bd7e7a885ccabcbd0b9a93c9496070f3eb370769297b0c476b2c8e6af
MD5 3536384b099c2114a44567c8faa0c6ee
BLAKE2b-256 09cd74998c86b85bfd76537866a493e32028cd5e8b7394fcef883bb11aaf2500

See more details on using hashes here.

File details

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

File metadata

  • Download URL: video_curator-1.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 645328e2158605c20a080d93a8210e125a023a10da57326fa2a9df9cdc7b5dce
MD5 c0877a9317d0e7c8e9cfb2ec30e8f185
BLAKE2b-256 0796229c7bbedf05eb7a4f2a40c420933ef28772d19e005dddc53c3cf7aaba31

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