远程执行python脚本

uv 远程执行脚本介绍

Running scripts | uv

Python scripts can be run directly from their URLs using uv run.

很多零碎的小脚本,可以放在云上,可以方便远程执行。

claude-code-transcripts_rename_html_with_prefix

uv run https://guacamole.961118.xyz/my-oss-storage/2026/01/claude-code-transcripts_rename_html_with_prefix.py
适用场景:
---------
- 有一组相互链接的 HTML 文件(如 index.html, page-001.html, page-002.html...)
- 想给这些文件统一加前缀(如 kline-index.html, kline-page-001.html...)
- 需要同时更新文件内部的所有链接,避免跳转失效

发表评论