Overview
A daily-updated bank of real interview questions and candidate write-ups for 936 companies, ranked by how often and how recently they're reported. A config-driven Python scraper runs every day on GitHub Actions, collecting from Prepfully's question bank, LeetCode Discuss, r/leetcode and r/csMajors. Every record is validated, quality-scored and de-duplicated, Gemini Flash-Lite turns narrative reports into structured questions, and the results sync to MongoDB Atlas, served by a Next.js 16 app on Cloud Run. Of 117,307 records collected so far, 82,575 are published.
Technical Challenges
One Scraper, Many Source Shapes
Each source is an entry in a YAML config, not a new crawler. Prepfully is read from the JSON embedded in its pages (__NEXT_DATA__), and because its pages are sorted newest-first, a daily crawl stops at the first page it has already seen. LeetCode Discuss comes from its public GraphQL API: a newest-first listing, then one detail request per post, since the API won't return bodies in lists. Reddit posts come from the Arctic Shift archive API, paged by timestamp, so 100 full posts cost a single request. Field paths (tags[?tagType=COMPANY].name), templates and exclude regexes map every response onto one record schema with full provenance.
Staying Up When Sites Change
A redesign or schema change must never corrupt yesterday's data. Each source has a circuit breaker that trips on too many empty pages, rejects, errors or a GraphQL error; that source's results and crawl state are then discarded for the run, raw HTML samples are uploaded, and a scraper-health issue opens itself, closing again when the source recovers. Rate limits honour Retry-After with jittered exponential backoff and double the host's delay for the rest of the run, conditional requests (ETag / If-Modified-Since) make unchanged pages nearly free, and each source's daily request budget carries unfinished work over in crawl_state.json, priority companies first. As a last guard, a run refuses to write if the published count would fall by more than 30%.
Accuracy Over Volume
Prepfully pads small companies' pages with stock questions tagged with ~400 companies, so questions flagged as generic or tagged with more than three companies are never credited to any company. Names are canonicalized (Facebook → Meta, TikTok → ByteDance), and untagged posts are attributed from the title only when exactly one known company is named, never for ordinary words like Visa, Block or Zoom. Each record starts at its source's trust score and carries a visible flag for every adjustment (truncated text, a discussion-style title, few interview details, staleness, no round, +0.10 per independent corroboration). Only records scoring 0.5 or more are published, and rejected ones stay in the data with the reason attached.
Conservative De-duplication
Near-duplicates are clustered with union-find, but merge only when the texts differ in filler words or same-stem word forms, and only across different origins. That keeps "Implement Queue using Stacks" apart from "Implement Stack using Queues" and "Stock II" apart from "Stock III". The first live run caught 51 false merges under a looser rule, which are now regression tests. Corroboration likewise needs independent evidence: two mirrors of the same upstream dataset, or cross-posts between subreddits, don't count.
LLMs Only Where Text Is Unstructured
Structured pages are parsed deterministically for free; Gemini Flash-Lite runs only on narrative candidate reports. A response schema at temperature 0.1 returns strict JSON that drops timeline and "chances?" posts, verifies the real employer against multi-company tag spam, and breaks multi-round write-ups into atomic questions with canonical titles ("LRU Cache", "Design a Rate Limiter") plus role, level and outcome. The candidate's original text is never rewritten, and results are cached by record fingerprint so an unchanged post is never billed twice, at an estimated $0.008 a day.
Popularity Ranking on MongoDB Atlas
Canonical titles are counted per company, so a question many candidates report ranks higher. A transparent 0–100 popularity score combines that log-scaled frequency with independent corroboration, quality and an exponential recency decay. Records are bulk-upserted into Atlas with compound indexes on company plus round, role, topic and kind, sorted by popularity, and a weighted text index that favours canonical titles over body text. The "Asked me (+1)" button increments votes atomically with findOneAndUpdate and $inc, then recomputes the score, and the app falls back to a local JSONL snapshot when Atlas isn't configured or a query fails.
System architecture
- Client
- Service
- External / AI
- Storage
- Infrastructure
- Live
A daily GitHub Actions run drives config-driven crawlers over Prepfully's embedded page JSON, LeetCode's GraphQL API, and the Arctic Shift Reddit archive, each with its own request budget, conditional requests, and a circuit breaker that discards a broken source's run instead of corrupting yesterday's data. Every record is validated, trust-scored, and conservatively de-duplicated before being committed to git as JSONL. Gemini Flash-Lite runs only on narrative candidate reports to extract canonical questions, and records are bulk-upserted into MongoDB Atlas with popularity scores, compound facet indexes, and a weighted text index that the Next.js app on Cloud Run queries and atomically updates with community votes.

