Simon Willison’s Weblog Subscribe

simonw/ollama-models-atom-feed. 我搭建了一个使用 GitHub Actions + GitHub Pages 的 Atom feed,用于抓取来自 Ollama latest models 页面上的最新模型数据。Ollama 仍然是在笔记本电脑上运行模型的最简单方法之一,所以来自他们的新的模型发布是值得关注的。

我通过将示例 HTML 粘贴到 Claude 中,并要求它编写一个 Python 脚本将其转换为 Atom 格式来构建了这个抓取工具。这是我们一起编写的脚本

2025 年 3 月 25 日更新:此工具的第一个版本在一个单独的 feed 中包含了全部 160 多个模型。我已经升级了这个脚本,使其输出两个 feed —— 原始的 atom.xml 文件,以及一个新的 atom-recent-20.xml feed,其中只包含最近的 20 个项目。

我使用了 Google 的新 Gemini 2.5 Pro 模型修改了这个脚本,就像这样:

cat to_atom.py | llm -m gemini-2.5-pro-exp-03-25 \
 -s 'rewrite this script so that instead of outputting Atom to stdout it saves two files, one called atom.xml with everything and another called atom-recent-20.xml with just the most recent 20 items - remove the output option entirely'

这是完整的记录。 发布于 2025 年 3 月 22 日 晚上 10:04

最近的文章

github-actions 55 git-scraping 34 ai 1171 ollama 21 llms 996 ai-assisted-programming 143 generative-ai 1007 projects 472 github 145 claude 137 atom 25