anthropics / anthropics/claude-cookbooks

Recipe idea: Web browsing with Plasmate instead of Chrome

Đang mở
#464 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Jupyter Notebook
Star
52.7k
Fork
6.3k
Merge trung bình
25 phút
Pull request đã merge (30 ngày)
6

Mô tả

Most web browsing recipes in the cookbooks use Playwright/Chrome to fetch page content before sending it to Claude. This works but sends 50K+ tokens of HTML noise per page.

[Plasmate](https://github.com/plasmate-labs/plasmate) is an open-source browser engine that outputs semantic content, compressing pages by 10-16x. It also ships as an MCP server.

A cookbook recipe could show:
1. Install Plasmate: `pip install plasmate`
2. Fetch a page: `plasmate fetch ` -> clean JSON
3. Send the SOM to Claude (16x fewer tokens, 94% cost savings)
4. Compare the same task with raw HTML vs SOM

We have Jupyter notebooks ready if useful: https://github.com/plasmate-labs/notebooks

Happy to contribute the recipe if there's interest. Apache 2.0.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.