CanSpider: Faculty Data Refresh Platform
Built at CanApply; in production from November 2025, handed over in November 2026
An LLM-driven platform that keeps CanApply's research-faculty database current across 2,946 department pages at 122 universities. Its first whole-database refresh settled 96% of 2,614 departments in about 2.5 days against a 14-day plan, found more than 21,000 new and changed records and held risky changes for review; about 19,000 reached production by October 27.
- Status
- In production
- Period
- 2025 to 2026
- My role
- Design and implementation
- Stack
- Python, FastAPI, Scrapy, Playwright, Kafka, MariaDB
Measured results
About 82,000
professors pushed live for student outreach
November 2025 to October 2026.
96%
of 2,614 departments refreshed in about 2.5 days, against a two-week plan
October 2026; risky changes held for human review.
The bottleneck
Faculty data lives on 2,946 department pages at 122 universities, each with its own structure and none of them documented. The existing process was one person collecting five or six university departments a day by hand. The obvious fix, a spider per site, fails on contact with reality: every hand-written spider breaks the first time a department redesigns its people page, and you end up maintaining N brittle scrapers instead of doing the work.
The idea, and the part that matters
The idea is not "use an LLM to scrape." Anyone can do that, and the result is a system that silently produces garbage.
The idea is that the model proposes a crawl plan and the system decides whether to
trust it. gpt-5.1 reads a compressed DOM digest of a site and emits a structured
plan. Before a single real request is made, that plan goes through three gates:
- A static linter: checks selector-type homogeneity, that every selector actually
translates through
cssselect, that no content-specific string literals leaked into what should be a general rule, and that regex host scoping can't wander off-domain. - A dry run against the live page, fetching a handful of sample profiles and reporting per-field coverage. A plan that extracts names but silently misses affiliations fails here, not in production.
- An auto-repair loop, up to two rounds, feeding the failures back to the model.
Only a plan that survives all three gets executed. This is the same instinct behind everything else I build: the model is allowed to be creative, and then something deterministic has to be accountable for what actually happened.
Execution
An LLM writes a crawl plan for each site. The plan is linted, repaired, and tested in a dry run before being frozen, so the same generic Scrapy and Playwright spider can crawl every university. Pages flow through Kafka to LLM extraction workers. A versioned eligibility policy records the reason for every decision, and a diff engine labels every change. Safe changes are published automatically; risky ones wait for human review in an operator console. A single-writer publisher uses compare-and-set writes, verified backups, and chunked releases, with a full before-and-after audit trail.
I tuned the extraction workers by measurement, and raising the LLM timeout cut extraction failures sharply. Checking a person's own page before reporting them missing removed a large share of false "missing" reports. A cheaper reasoning setting was rejected because it missed eligible professors.
Results: the first whole-database refresh (October 2026)
- 2,614 departments, 96% settled in about 2.5 days against a 14-day plan
- More than 21,000 new and changed records found
- About 19,000 reached production by October 27; 7,000+ flagged changes held for review
- Under US$400 of LLM spend across all three batches
Over its first year, from November 2025 to October 2026, CanSpider pushed about 82,000 professors live for student outreach.
What's still open
The departments that failed every step of the automatic crawl ladder still need a local crawl, and the 7,000+ flagged changes depend on people working the review queue. I'd put a second engineer on both.