Built a scraper that fixes its own broken selectors when a site redesigns
reddit SideProject · 原文链接 ↗ · 56 分
Hey r/SideProject , I kept hitting the same wall on past scraping projects: everything works fine until the target site redesigns, a CSS selector silently stops matching, and you don't find out until the data looks wrong days later. So I built SelectorLock — a scraping API where you bring your own proxy, give it a URL and a schema for what you want, and if a selector breaks, it tries to repair itself automatically using an LLM (cheap model first, only escalates if that fails) instead of you having to notice and fix it by hand. Once it finds the right elements again, it remembers the fi