Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: PyScrappy, self-healing web scraping selectors plus an MCP server (github.com/mldsveda)
18 points by vedaant00 16 hours ago | hide | past | favorite | 2 comments
 help



does the inmemory cache has a max size to eviction policy, or will a long running mcp server with cache_ttl enabled accumulate entries indefinitely until process restart?

Good question. PyScrappy's shared response cache is LRU-bounded with a configurable max size (cache_max_size, default 512), so it won't grow indefinitely even for a long-running MCP server hitting many distinct URLs. Oldest entries are evicted at the cap, expired ones are dropped on access, and reads promote to most-recently-used, so it stays bounded regardless of access pattern. Just shipped this in the latest release.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: