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.1.0.tar.gz (38.7 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.1.0-py3-none-any.whl (38.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: video_curator-1.1.0.tar.gz
  • Upload date:
  • Size: 38.7 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.1.0.tar.gz
Algorithm Hash digest
SHA256 62ce85348aeb0f31a64c2627fe9a09c662983ad4e6d254953111565b0099ec8b
MD5 30cbe809fb82ef501258b151e7a1b2e2
BLAKE2b-256 a59434ccbdcdae251139d2fa339828d8d150f687befa7eb83d0596713a050b80

See more details on using hashes here.

File details

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

File metadata

  • Download URL: video_curator-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 38.2 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e9b5aa05223b1ae70922c2c08e83bf2903d5d4d70e419ed91ae1a2873b3cdd41
MD5 0004afdda81092bbcd4fe9ee0698628d
BLAKE2b-256 e59d3dca6f73726f9048765c43e4974619aba78068d8200bc7abcf5f6c93ffcc

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