iNaturalist 观测记录

Simon Willison's Blog 工具

摘要

Simon Willison 构建了一个个人工具,用于按时间和地点分组查看 iNaturalist 的观测记录。他使用 Claude Code for Web 以及一个用于聚合观测数据的 Python CLI,并通过 Git 抓取技术将数据托管在 GitHub 上。

暂无内容
查看原文
查看缓存全文

缓存时间: 2026/05/08 06:53

# 工具:iNaturalist 观察记录 来源:https://simonwillison.net/2026/May/1/inat-sightings/ 我想查看我在 iNaturalist (https://www.inaturalist.org/) 上的观察记录——跨越两个不同的账号——并按发生时间进行分组。由于本周末我要去露营,所以我完全在手机上使用 Claude Code for Web 构建了它。 我首先构建了一个 inaturalist-clumper (https://github.com/simonw/inaturalist-clumper) Python 命令行工具,用于获取并“聚类”观察记录——默认情况下,聚类会将 2 小时内且相距 5 公里以内的观察记录归为一组。 然后我设置 simonw/inaturalist-clumps (https://github.com/simonw/inaturalist-clumps) 作为 Git scraping (https://simonwillison.net/series/git-scraping/) 仓库,用于运行该工具并将结果记录到 clumps.json (https://github.com/simonw/inaturalist-clumps/blob/main/clumps.json) 中。 该 JSON 文件托管在 GitHub 上,这意味着可以通过 JavaScript 使用 CORS 获取它。 最后,我在 simonw/tools (https://github.com/simonw/tools) 仓库中运行了以下提示: > `构建 inat-sightings.html —— 一个应用程序,通过 fetch() 请求 https://raw.githubusercontent.com/simonw/inaturalist-clumps/refs/heads/main/clumps.json,然后在页面上显示所有观察记录,使用 https://static.inaturalist.org/photos/538073008/small.jpg 这样的 small.jpg URL 作为缩略图,设置 loading=lazy,但点击缩略图时在 HTML 模态框中显示 large.jpg。small 和 large 都应包含常见的物种名称(如果可用)`

相似文章

Claude系统提示词的git时间线

Simon Willison's Blog

一种研究工具,它将Anthropic的Claude系统提示词文档转化为基于git的时间线,使研究人员能够使用标准git命令(如log、diff和blame)追踪不同模型版本间的提示词演变。