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

  • 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-4o
    
  2. Run with uvx:

    uvx ask-video <VIDEO_URL>
    

    Example:

    uvx ask-video https://www.bilibili.com/video/BV1fK4y1t7hj
    

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ask_video-0.1.0.tar.gz
  • Upload date:
  • Size: 4.3 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.1.0.tar.gz
Algorithm Hash digest
SHA256 7e53b4b95ad987af118b1b10915fc6038da4a347c08689fb3df394b7adc8ad1b
MD5 1df6682a9c0fb4c277cb04f47a663ac9
BLAKE2b-256 fc81712583fe7bc2d3de6fd29ba63aeb3967764461e7ccd4ee1ca15aec730dbc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ask_video-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c943ca59f16e7d510215bb5d26f876b0dd16e0d70a2cc0b6d53f337fe454e344
MD5 dba15a96f5d595cba1e9f958ee3342f6
BLAKE2b-256 fa9553ff6b188d0322a050f49c99e30f5421b76b1d6ae69489bfa1b9994f522a

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