Skip to main content

A CLI tool to chat with YouTube and Bilibili videos using AI.

Project description

Ask Video

A tool to chat with YouTube and Bilibili videos using AI.

Features

demo

  • Video Download: Automatically fetches video from YouTube and Bilibili videos.
  • AI Chat: Uses OpenAI (or compatible) models to answer questions based on the video content.
  • Streaming Output: Responses are streamed in real-time for a better user experience.
  • Cross-Platform: Works on macOS, Linux, and Windows.

Usage

You can run this tool directly using uvx without installing it manually.

Prerequisites

You need to have uv installed.

Running the Tool

  1. Set your OpenAI API Key: You need to provide your OpenAI API key. You can do this by setting an environment variable.

    export OPENAI_API_KEY=your_api_key_here
    

    If you are using a custom OpenAI-compatible provider (like DeepSeek, Moonshot, etc.), you can also set the base URL and model:

    export OPENAI_BASE_URL=https://api.example.com/v1
    export OPENAI_MODEL_ID=gpt-5-mini-2025-08-07
    
  2. Run with uvx:

    uvx ask-video <VIDEO_URL>
    

    Example:

    uvx ask-video https://www.youtube.com/watch?v=qjPH9njnaVU
    

Development

To develop or contribute to this project:

  1. Clone the repository:

    git clone https://github.com/jtsang4/ask-video.git
    cd ask-video
    
  2. Install dependencies:

    uv sync
    
  3. Run locally:

    uv run ask-video <URL>
    

License

This project is licensed under the MIT License. See the LICENSE file for details.

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

ask_video-0.2.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

ask_video-0.2.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file ask_video-0.2.0.tar.gz.

File metadata

  • Download URL: ask_video-0.2.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for ask_video-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e2a791e5748fb7e2f60a3747641f1580c95175db588d2cef7c1b8bfe5c2d8015
MD5 cdefac28feb718a65e8c92f7c0f8f71b
BLAKE2b-256 e236055be3ab9d77026da946816578b5b8a41c9b3566160131d7b0822e5c5654

See more details on using hashes here.

File details

Details for the file ask_video-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: ask_video-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for ask_video-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 68e14d8691ca1f37687f7589a6a56d50df64041d042427d6841933a163795648
MD5 e140179d7339f987c22ce5a69b0a8a43
BLAKE2b-256 b347d2c6dfe4ffd544d83049d40c2e6c1def17491a79b5c245d9e523f721d86e

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