https://github.com/stong/tldw
Code for tldw.tube
https://github.com/stong/tldw
Last synced: 10 months ago
JSON representation
Code for tldw.tube
- Host: GitHub
- URL: https://github.com/stong/tldw
- Owner: stong
- License: agpl-3.0
- Created: 2025-01-02T07:48:43.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-04-24T02:29:03.000Z (10 months ago)
- Last Synced: 2025-05-05T06:41:22.145Z (10 months ago)
- Language: Python
- Homepage: https://tldw.tube
- Size: 315 KB
- Stars: 377
- Watchers: 2
- Forks: 30
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- starred - stong/tldw - Code for tldw.tube (Python)
README
# [TL;DW](https://tldw.tube)
Too Long; Didn't Watch!

# How to use
- Go to https://tldw.tube or run locally (recommended)
- Enter video URL
- Go
Running locally is recommended because hosted version have strict rate limit, as it rely on residential proxy and OpenAI API which costs me money.
# Deploying
Set the variables in .env:
```
OPENAI_API_KEY=sk-proj-xxxxxx...
PROXY_URL=https://user:pass@your-proxy-provider-here.com:8888
MAX_VIDEO_DURATION=7200
```
Variables:
- `PROXY_URL` is optional but recommended for production deployments, recommend using a residential or LTE proxy.
- `MAX_VIDEO_DURATION` is optional, defaults to 7200 (2 hours). Videos longer than this will be rejected.
Then:
```
docker-compose up -d
```
# Local development
- prepare `.env` file
- `python3 -m virtualenv venv ; source venv/bin/activate`
- `pip install -r requirements.txt`
- launch backend `python backend.py &`
- If needed, edit backend url in `App.tsx`
- frontend setup `cd youtube-summarizer ; yarn install ; yarn dev`