On the first weekday of every month, the whoishiring account posts "Ask HN: Who is hiring?" on Hacker News. Within a day or two it has a few hundred top-level comments, and each one is a job post written by someone at the hiring company. There are no recruiters, no job board, and a lot of small, interesting companies that don't advertise anywhere else.
It's a great source, but reading it is tedious. You can't filter it, the format is loose, and every month starts from zero. So in this tutorial we'll build a small Python tool that turns these threads into a SQLite table you can query:
- Find the monthly "Who is hiring?" threads (and skip "Who wants to be hired?")
- Download every job post in one request, then fill the gaps
- Parse the
Company | Role | Location | REMOTE | Salary header line
- Pull out remote/onsite/hybrid, visa mentions, and yearly salary ranges
- Track tech mentions month over month, and see which companies come back
It's one file, hn_hiring.py (about 300 lines), using requests and the standard library. Everything below ran on November 4, 2026, against the June to November 2026 threads. The output is real.
You don't need to scrape HTML at all
Hacker News has two free, public JSON APIs, and both are fine to use:
- The official HN API (
https://hacker-news.firebaseio.com/v0). item/<id>.json gives one item. For a story, kids lists the IDs of its top-level comments in the order HN displays them. Deleted and dead comments are still in that list.
- The Algolia HN Search API (
https://hn.algolia.com/api/v1). search_by_date finds stories, and items/<id> returns a whole comment tree in one request.
The HTML site has Crawl-delay: 30 in its robots.txt, so if you're tempted to parse news.ycombinator.com/item?id=... pages, don't. The APIs are faster and give you clean fields.
One more thing before we start: the thread's own rules say "Readers: please only email if you are personally interested in the job." Use this to find jobs and spot trends. Don't use it to build email lists.
Step 1: Find the monthly threads
All the threads come from the user whoishiring, and Algolia tags every story with its author, so tags=story,author_whoishiring gives you exactly that account's posts. The account posts two threads at the same second every month, so filter by title:
ALGOLIA = "https://hn.algolia.com/api/v1"
TITLE_RE = re.compile(r"^Ask HN: Who is hiring\? \((\w+) (\d{4})\)$")
MONTHS = {m: i for i, m in enumerate(
"January February March April May June July August September October November December".split(), 1)}
def find_threads(months=12):
"""Return [(YYYY-MM, story_id, title, num_comments)], newest first."""
out, page = [], 0
while len(out) < months:
data = get_json(f"{ALGOLIA}/search_by_date", {
"tags": "story,author_whoishiring", "hitsPerPage": 50, "page": page})
if not data["hits"]:
break
for h in data["hits"]:
m = TITLE_RE.match(h["title"] or "")
if m: # skip "Who wants to be hired?" and old "Freelancer?" threads
ym = f"{m.group(2)}-{MONTHS[m.group(1)]:02d}"
out.append((ym, int(h["objectID"]), h["title"], h["num_comments"]))
page += 1
return out[:months]
get_json is a plain requests wrapper with a descriptive User-Agent and a short exponential backoff on 429 and 5xx. Output:
$ python hn_hiring.py threads --months 6
2026-11 50338728 Ask HN: Who is hiring? (November 2026) 229
2026-10 49922569 Ask HN: Who is hiring? (October 2026) 386
2026-09 49522897 Ask HN: Who is hiring? (September 2026) 389
2026-08 49156683 Ask HN: Who is hiring? (August 2026) 371
2026-07 48747976 Ask HN: Who is hiring? (July 2026) 417
2026-06 48357725 Ask HN: Who is hiring? (June 2026) 489
The last number is num_comments, which counts replies too. It is not the number of jobs.
Step 2: Get the job posts
Only top-level comments are job posts. Replies are questions, and sometimes complaints, which the thread rules ask people not to post.
You could request every ID in kids from Firebase, one request each. That's 200-360 requests per thread. Algolia's items/<id> returns the whole tree in one call, so I use it for the text and keep Firebase's kids as the authoritative list:
def fetch_posts(story_id):
"""Top-level comments = job posts. Firebase gives the authoritative list
(in HN's display order); Algolia gives the text of most of them in one call."""
story = fetch_item(story_id)
kids = story.get("kids", [])
tree = get_json(f"{ALGOLIA}/items/{story_id}")
by_id = {c["id"]: c for c in tree["children"]}
posts, missing = [], []
for rank, kid in enumerate(kids, 1):
c = by_id.get(kid)
if c and c.get("text"):
posts.append({"id": kid, "rank": rank, "by": c["author"],
"time": c["created_at_i"], "text": c["text"]})
else:
missing.append((rank, kid))
# Fill gaps from Firebase: dead/deleted posts, or ones Algolia hasn't indexed yet
stats = {"kids": len(kids), "algolia": len(by_id), "deleted": 0, "dead": 0, "filled": 0}
with ThreadPoolExecutor(max_workers=5) as ex:
for (rank, kid), it in zip(missing, ex.map(fetch_item, [k for _, k in missing])):
if not it or it.get("deleted"):
stats["deleted"] += 1
elif it.get("dead"):
stats["dead"] += 1
elif it.get("text"):
stats["filled"] += 1
posts.append({"id": kid, "rank": rank, "by": it["by"],
"time": it["time"], "text": it["text"]})
posts.sort(key=lambda p: p["rank"])
return story, posts, stats
Running it for six months:
$ python hn_hiring.py fetch latest --months 6
2026-11 50338728: kids=204 algolia=179 deleted=13 dead=12 filled_from_firebase=0 -> saved 179 (1.4s)
2026-10 49922569: kids=319 algolia=257 deleted=42 dead=20 filled_from_firebase=0 -> saved 257 (4.1s)
2026-09 49522897: kids=300 algolia=248 deleted=39 dead=13 filled_from_firebase=0 -> saved 248 (6.6s)
2026-08 49156683: kids=265 algolia=225 deleted=32 dead=8 filled_from_firebase=0 -> saved 225 (3.7s)
2026-07 48747976: kids=311 algolia=257 deleted=44 dead=10 filled_from_firebase=0 -> saved 257 (4.9s)
2026-06 48357725: kids=363 algolia=312 deleted=35 dead=16 filled_from_firebase=0 -> saved 312 (6.8s)
Three things I learned here:
- Between 12% and 19% of
kids are gone. Deleted posts are often companies that filled the role or broke the "one post per company" rule. Dead ones were killed by flags or moderators. Algolia leaves both out, and that explained every gap: no live post was missing from Algolia, so the Firebase fallback filled 0. Keep it anyway. A brand-new thread can be ahead of the index for a while.
- Algolia's
children come back oldest first, not ranked. On November 4 the first Algolia child was the first post written, while HN's top post was Fly.io. If position matters to you, use the kids order. That's why I store rank from Firebase.
- Store
id as the key. A post keeps its ID if it's edited, so re-fetching a month just replaces the rows.
The thread asks posters to "state the location and include REMOTE for remote work, REMOTE (US) or similar if the country is restricted, and ONSITE when remote work is not an option." Most people also follow the old convention of a pipe-separated first line:
Fly.io | REMOTE (multiple countries) | Full time | $190k USD + equity
The text is HTML (<p>, <a>, <i>, <pre>, and entities like /), so first convert it to plain text and keep link targets. Then the first line is the header:
def to_text(h):
h = re.sub(r"<p>", "\n\n", h)
h = re.sub(r'<a href="([^"]+)"[^>]*>.*?</a>', r"\1", h)
h = re.sub(r"<[^>]+>", "", h)
return html.unescape(h).strip()
def parse_post(p):
text = to_text(p["text"])
header = text.split("\n", 1)[0]
parts = [x.strip() for x in header.split("|")]
has_pipes = len(parts) >= 3
H = header.upper()
cur, lo, hi = parse_salary(header)
return {
**p,
"company": parts[0][:80] if has_pipes else "",
"header": header[:300],
"remote": int(bool(re.search(r"\bREMOTE\b", H)) and not re.search(r"\bNO REMOTE\b|\bNOT REMOTE\b", H)),
"onsite": int(bool(re.search(r"\bON-?SITE\b|\bIN[- ]OFFICE\b", H))),
"hybrid": int("HYBRID" in H),
"visa": int(bool(re.search(r"\bVISA\b", text.upper())) and not re.search(r"\bNO VISA|VISA SPONSORSHIP (?:IS )?NOT\b", text.upper())),
"currency": cur, "sal_lo": lo, "sal_hi": hi,
"text": text,
}
About 88-89% of posts had at least three pipe-separated fields every month. The rest are free text ("We're hiring engineers in Berlin..."), and for those I leave company empty instead of guessing.
Some honest limits of this parser:
- The flags are not exclusive. "REMOTE (US) or ONSITE in Reno, NV" is both. In November, 11 posts were remote and onsite, and 24 had none of the three words.
- Not every post has a newline after the header. Some write the whole post as one paragraph, so the header runs into the description. That's why I cut it at 300 characters.
- Visa is a rough flag. It's "mentions visa and doesn't obviously say no". Read the post before you rely on it.
Step 4: Salaries are messy
Only about one in four posts puts a number in the header. Here's what the parser has to handle, all taken from the six months I stored:
$190k USD + equity
$60K–$100K base + upside for new business
$65k to $100k
$80-120K USD (Negotiable)
€120k-€200k + equity
€5,000/month (full-time)
up to ~ $750k cash hiring plus meaningful equity
$65k ($130k annualized)
Dashes vary, k sometimes appears only on the second number, and some numbers aren't yearly at all. My rule: find the first currency amount or range in the header and keep it only if it looks like a yearly salary (between 20,000 and 1,000,000):
SAL_RE = re.compile(
r"(?P<cur>[$€£])\s?(?P<lo>\d{2,3}(?:[.,]\d{3})*(?:\.\d+)?)\s?(?P<lok>[kK])?"
r"(?:\s?(?:-|–|—|to)\s?[$€£]?\s?(?P<hi>\d{2,3}(?:[.,]\d{3})*(?:\.\d+)?)\s?(?P<hik>[kK])?)?")
def money(num, k):
v = float(num.replace(",", "").replace(".", "") if re.search(r"[.,]\d{3}$", num) else num)
return v * 1000 if k else v
def parse_salary(header):
for m in SAL_RE.finditer(header):
lo = money(m["lo"], m["lok"] or m["hik"])
hi = money(m["hi"], m["hik"] or m["lok"]) if m["hi"] else lo
if 20_000 <= lo <= 1_000_000 and lo <= hi: # yearly salaries only
return m.group("cur"), lo, hi
return None, None, None
That drops €5,000/month correctly, but it's still a heuristic. "Up to ~$750k" is stored as 750k-750k (one company posted exactly that in five of the six threads), and "$65k ($130k annualized)" is stored as 65k for a six-month role. Another 31 November posts had a currency amount only in the body, which this skips. So use the median, not the mean, and don't compare € and $ numbers directly.
$ python hn_hiring.py stats 2026-11
2026-11: 179 job posts
pipe-format header: 89%
REMOTE 94 53%
ONSITE 61 34%
HYBRID 22 12%
mentions VISA 12 7%
salary in header: 44 posts (25%)
USD midpoint median: $190,000 (n=35, range $80,000-$300,000)
Step 5: Store months in SQLite and track trends
Each fetch writes one row per post into hiring.db (posts) and a summary row per month (threads). Since every month is stored, trends are just counting. The only hard part is matching terms in free text without false hits:
TERM_RE = {"go": r"(?-i:\bGo(?:lang)?\b|\bgolang\b)(?![- ]to\b)", "c++": r"c\+\+", "c#": r"c#", ".net": r"\.net\b",
"ai": r"(?<![.\w])ai\b(?!\.)", "llm": r"\bllms?\b", "node": r"\bnode(?:\.?js)?\b"}
def term_re(t):
return re.compile(TERM_RE.get(t, r"\b" + re.escape(t) + r"\b"), re.I)
Both special cases come from real bugs. A case-insensitive \bgo\b matched "can go higher" and "go live", and Go looked like it was in 13% of June posts. Matching only a capitalized Go brought that down to 10%. It still catches "Go for it!", so treat the numbers as rough. Plain \bai\b also matched every something.ai domain and email address, so the AI pattern skips matches next to a dot.
$ python hn_hiring.py trend python,typescript,rust,go,ai,llm
month posts python typescript rust go ai llm
2026-06 312 26% 22% 8% 10% 52% 14%
2026-07 257 22% 24% 11% 5% 51% 14%
2026-08 225 28% 23% 7% 8% 58% 16%
2026-09 248 27% 20% 8% 7% 56% 15%
2026-10 257 24% 22% 9% 6% 53% 12%
2026-11 179 21% 19% 9% 5% 51% 10%
More than half of all posts mention AI, and Python stays at about a quarter. The November thread is only two days old, so its post count will keep growing. Re-run fetch at the end of the month before you compare it with earlier months.
Step 6: Search, repeat hirers, and CSV
Search does the obvious thing, with filters for the flags:
$ python hn_hiring.py search rust --remote --month 2026-11
2026-11 https://news.ycombinator.com/item?id=50349000
Blockrotate| Senior Systems / Rust Engineer | Remote (US/EU timezones preferred) | Full-time | $130k - $170k + Equity
2026-11 https://news.ycombinator.com/item?id=50340820
Postscript (YC W19) | Senior Software Engineer, Full Stack | REMOTE (US, Canada) | Full-time | $180K to $220K base + equity
...
12 matches
"Repeat hirers" are companies that post month after month. They are either growing fast or struggling to fill a role, and both are useful to know. Company names vary ("Shepherd (Series B)", "Acme, Inc."), so normalize them before comparing:
def norm(c):
return re.sub(r"[^a-z0-9]", "", re.sub(r"\(.*?\)|\b(inc|llc|ltd|gmbh)\b\.?", "", c.lower()))
$ python hn_hiring.py repeat 2026-11
2026-11: 158 companies, 81 also posted in earlier stored months, 77 new
5 earlier months Sudowrite
5 earlier months Starbridge
5 earlier months Shepherd (Series B)
5 earlier months PostHog
...
About half of November's companies had posted in at least one of the previous five threads. Finally, export 2026-11 nov.csv writes one row per post with the flags, salary range, header, and a link back to the post. That's handy for a spreadsheet or a weekly "new remote Python roles" note to yourself.
The pitfalls, in one place
num_comments isn't the job count. Count top-level comments, and expect 12-19% of kids to be deleted or dead.
- Algolia leaves out deleted and dead posts, and returns children oldest first. Use Firebase
kids for the list and the order.
- The format is a convention, not a schema. About 11% of posts have no pipe header. Keep the raw text and the link so a human can check.
- Salary parsing needs limits. Monthly figures, "up to" amounts, and short contracts will skew averages. Use medians, and keep currencies separate.
- Keyword counts have false positives. "Go" the verb and
.ai domains were the two worst. Spot-check a sample of matches before you publish a chart.
- Threads keep growing for weeks. Re-fetch, don't diff on the first day. Rows are keyed by post ID, so re-fetching is safe.
- Be polite. One Algolia call per thread plus a few Firebase calls is all you need. Don't hammer the HTML site, and don't mass-email the people who posted.
Or skip the plumbing
If you want this in a larger pipeline and don't want to maintain the Firebase/Algolia merge yourself, ScrapeAtlas* has Hacker News endpoints. GET /v1/hackernews/story/comments takes a story id and a depth, and depth=1 gives you exactly the top-level job posts:
import os, requests
res = requests.get("https://api.scrapeatlas.com/v1/hackernews/story/comments",
params={"id": 50338728, "depth": 1},
headers={"x-api-key": os.environ["SCRAPEATLAS_API_KEY"]},
timeout=60)
d = res.json()
print(res.status_code, d["status"], d["coverage"], d["commentCount"])
200 partial {'source': 'public_api', 'complete': False, 'warnings': ['depth_limit']} 179
partial with a depth_limit warning is expected here, because we asked it to cut the replies. The 179 posts match the count above, and you can feed comments[i]["text"] straight into parse_post. GET /v1/hackernews/search (with tags and sortBy=date) and GET /v1/hackernews/story cover finding the thread and reading its counts.
Wrapping up
- Use the APIs: Algolia to find threads and get the text in one request, Firebase
kids for the real list and order.
- Parse the header line, and keep the raw text. Remote, onsite, hybrid, and visa flags plus a yearly salary range cover most of what people filter on.
- SQLite turns months into trends. Tech mentions, salary medians, and repeat hirers are a few lines of SQL or Python each.
- Treat every number as a heuristic and check samples before you trust a chart.
*I build it.