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.
Latest update
- 1.1.0 Video processing is now asynchronous. You can add as many videos to the queue all at once.
- 1.0.4 User can modify configurations using UI pop up window.
Usage
Installation
Installation is easy, just open terminal and type:
pip install video-curator
Then type the following command to run (it 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.
Configure
If you are using this app for the first time, you need to modify the config file and add openai or anthropic api keys.
What configuration you can customize in config.json file:
{
"model": [ // The models possibly used in this app
{
"title": "openai-gpt-4o",
"provider": "openai",
"name": "gpt-4o",
"api_key": "YOUR_OPENAI_API_KEY" // Api KEY
},
{
"title": "anthropic-claude-3.5-sonnet",
"provider": "anthropic",
"name": "claude-3-5-sonnet-20240620",
"api_key": "YOUR_ANTHROPIC_API_KEY"
}
],
"transcriber": {
"model": "whisper",
"size": "small", // model size. See: https://github.com/openai/whisper
"temperature": 0
},
"summarizer": {
"model_title": "openai-gpt-4o", // the model title defined above, openai is used by default
"max_tokens": 4096,
"temperature": 0.8
},
}
Here is a demo
Developer
If you want to have more control on the installation and would like to play around with the code, please to to developer mode:
- Clone this repository:
git clone https://github.com/zleung9/youtube-transcribe.git
cd youtube-transcribe
-
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
-
Install the required packages.
pip install -e . -r requirements.txt
- Set up configuration as described in previous section. You do need to initiate a configuration file to begin with.
cp config.json.template config.json
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.
- Run in command line
Run the main script. The command is yourtube with an "r".
yourtube
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file video_curator-1.2.1.tar.gz.
File metadata
- Download URL: video_curator-1.2.1.tar.gz
- Upload date:
- Size: 178.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b9d09fa64ae557f5d9853f1a374b9d88b0c1a02beba117a2231f4bc04cae755
|
|
| MD5 |
0272975473ff35054c67a4bca7a1fe21
|
|
| BLAKE2b-256 |
f9ee9b7b6a77d5c49e392ea43ccf6c26982f9474d400ee0b0bbb17f789250445
|
File details
Details for the file video_curator-1.2.1-py3-none-any.whl.
File metadata
- Download URL: video_curator-1.2.1-py3-none-any.whl
- Upload date:
- Size: 176.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b7b05cd9ddbd374304438d76185cd1d3f6f673d299b6c7e8c4d36bc7187a6b7
|
|
| MD5 |
125badba5fded54aee9129bab82cdf42
|
|
| BLAKE2b-256 |
56195c187538b48861228ebf5bb83283fb4f0900f524af46d42d8de5361b93c1
|