Urgent.News

What's breaking now, across thousands of outlets.

More in Tech

What I Learned Building Co-op Translator MCP

I recently added a Model Context Protocol server to Co-op Translator. Co-op Translator started as a CLI-first tool for translating Markdown files, Jupyter notebooks, and text inside images.

  • Co-op Translator introduced Model Context Protocol (MCP) server
  • Separated responsibilities into model-controlled tools
  • Agent-facing APIs prioritize composability and safe defaults

Our scraper stored 20 links per page and kept every page in memory

We build and maintain web scrapers that run for hours at a time. In October one of them ran out of memory, and the cause was a detail of lxml that we had skimmed past in its docs.

  • Scraper stored 20 links per page, each 12.6 MB
  • lxml documentation oversight caused memory leak
  • Changing xpath() to return ordinary strings resolved issue

More from Sunday 8 November →