What you get
One Slack message a day, and only on days with something new. Jobs are grouped by category, the biggest group first. Inside a group, listings that state a salary come first, highest first, marked with a coin; the rest follow newest first. Each line shows the company, the regions the job is open to, the pay when stated, the employment type and a link to the listing; the board it came from is named under it, with the other boards that list the same job. Past eight per category, the rest are counted and linked.
Built from a real dry run on 3 November 2026 with the profile in the script: seven new jobs that week, all shown. The same run also carried a warning line because one board had rate-limited our test runs; a normal morning shows none.
How it works
- GitHub ActionsStarts the job every day at 06:37 UTC.
- Remote Jobs ScraperRuns on Apify: reads six boards and the Hacker News thread, applies your filters, removes duplicates, returns only listings not delivered before.
- remote_jobs_digest.pyGroups the rows per category, puts paid roles first, builds the message.
- SlackOne webhook post, retried while Slack is busy.
Three decisions carry the whole design:
- The actor keeps the state. With
onlyNewSinceLastRunit remembers the job IDs it delivered, in a named key-value store in your Apify account, and skips them next time. The script stores nothing, so it runs the same on GitHub Actions, cron or a serverless function. - Your profile is applied at the source.
keywords,categories,locations,seniority,minSalaryandpostedAfterare applied inside the actor before anything is charged, and the freeboardrecords still tell you how much each board had. - Money and time have ceilings. Every run starts with a spending cap and a timeout. The actor stops cleanly below the cap and says so in its
boardrows.
Before you start
- An Apify account (the free plan is enough) and an API token from Console → Settings → API & Integrations.
- A Slack incoming webhook: create an app at api.slack.com/apps, turn on Incoming Webhooks and add one for your channel.
- Your profile: a few title keywords, the categories you want, the regions you can work from (
Worldwide,Europe,USA, a country) and, if you like, a level and a salary floor. - To try it on your machine: Python 3.11+ and uv.
1Look at the data first
Before writing code, look at what comes back. This input asks for five of this week's Python or TypeScript jobs open worldwide or to Europe, well inside the 50 free jobs every account gets each month:
{
"keywords": ["python", "typescript"],
"locations": ["Worldwide", "Europe"],
"postedAfter": "7d",
"maxJobs": 5,
"includeDescription": false
}One synchronous call runs the actor and saves the dataset:
API=https://api.apify.com/v2/actors/agentsgearbox~remote-jobs-scraper
curl -s "$API/run-sync-get-dataset-items?maxTotalChargeUsd=0.05" \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d @try-input.json -o sample.jsonThe rows come in three types. Here is one of each, trimmed to the fields that matter:
{
"job": {
"jobId": "hackernews:50341833",
"board": "hackernews",
"boardName": "Hacker News",
"title": "Agentic Python Engineer",
"company": "Evaboot",
"location": "REMOTE worldwide",
"regions": [
"Worldwide"
],
"worldwide": true,
"employmentType": "full-time",
"seniority": null,
"category": "engineering",
"salaryText": null,
"salaryAnnualMin": null,
"salaryAnnualMax": null,
"postedAt": "2026-11-02T19:00:38.000Z",
"url": "https://news.ycombinator.com/item?id=50341833",
"applyUrl": "https://www.youtube.com/watch?v=khYgyDlo2Iw",
"alsoOn": []
},
"board": {
"type": "board",
"board": "himalayas",
"boardName": "Himalayas",
"jobsFetched": 1000,
"jobsMatched": 0,
"duplicatesRemoved": 0,
"jobsDelivered": 0,
"pagesRead": 50,
"topCategories": [
{
"name": "product",
"count": 170
},
{
"name": "engineering",
"count": 146
},
{
"name": "sales",
"count": 96
}
],
"topRegions": [
{
"name": "USA",
"count": 393
},
{
"name": "Philippines",
"count": 140
},
{
"name": "UK",
"count": 89
}
],
"status": "EMPTY",
"stoppedBy": "endOfBoard"
},
"error": {
"type": "error",
"board": "jobicy",
"boardName": "Jobicy",
"error": "Jobicy rate-limited this run (HTTP 429); run again later."
}
}- A job row has no
type.regionsandworldwideare the actor's reading of the board's location wording;category,seniorityandemploymentTypeare normalized from the board's fields or the title, with the raw values kept next to them;salaryTextand the annualized fields are filled only when the posting states pay.jobIdis what the checkpoint remembers,boardNameandurlare what the boards ask you to show. boardis free, one per board: how many listings were read and matched, how many duplicates were removed, the top categories and regions, and why the walk stopped.erroris free too. A board that cannot be read comes back as a row, not as a failed run, and the other boards are still delivered.
A job open to Europe does not match locations: ["Germany"]: the actor matches what the board states, and most European listings say EMEA or Europe rather than a country. List the regions and the country both, and keep Worldwide in the list, or you will filter out the jobs anyone can apply to.
2The script
Save it as remote_jobs_digest.py at the root of the repository that will run it, then change RUN_INPUT to your profile. The dependency is declared inline (PEP 723), so uv run remote_jobs_digest.py needs no virtualenv and no requirements file.
#!/usr/bin/env python3
# /// script
# requires-python = ">=3.11"
# dependencies = ["apify-client>=3.3,<4"]
# ///
"""Post the new remote jobs that match your profile to Slack, every morning.
Runs agentsgearbox/remote-jobs-scraper on Apify. The actor reads six remote job
boards and the Hacker News "Who is hiring?" thread, applies your filters before
charging, removes cross-board duplicates and remembers the job IDs it already
delivered in a key-value store in your Apify account, so each run returns only
jobs you have not seen and this script keeps no state.
Environment:
APIFY_TOKEN Apify API token (Console > Settings > API & Integrations)
SLACK_WEBHOOK_URL Slack incoming webhook
DRY_RUN=1 print the Slack messages instead of posting them
REPLAY_RUN_ID=... format an earlier run again instead of starting a new one
"""
import json
import os
import sys
import time
import urllib.error
import urllib.request
from collections import defaultdict
from datetime import timedelta
from decimal import Decimal
from apify_client import ApifyClient
ACTOR = "agentsgearbox/remote-jobs-scraper"
# Your profile. Every filter is applied inside the actor, before anything is charged.
RUN_INPUT = {
"keywords": ["python", "typescript", "backend"], # in the title or tags; [] = all
"excludeKeywords": ["intern", "junior", "unpaid"],
"categories": ["engineering", "devops", "data"], # see the actor's input for the list
"locations": ["Worldwide", "Europe", "Germany"], # regions the job is open to
"minSalary": 60000, # annual, posting's currency; no stated salary still passes
"postedAfter": "7d", # first run or lost checkpoint: reach back a week at most
"maxJobs": 200,
"includeDescription": False, # title, company, regions, salary, link: enough
"onlyNewSinceLastRun": True,
"checkpointStoreName": "remote-jobs-digest", # one store per profile
}
MAX_CHARGE_USD = Decimal("0.50") # hard cap per run; a normal morning costs a few cents
SHOWN = 8 # jobs listed per category; the rest are counted and linked
CONSOLE = "https://console.apify.com"
CATEGORY_NAMES = {
"engineering": "Engineering", "devops": "DevOps", "data": "Data and AI",
"security": "Security", "design": "Design", "product": "Product",
"customer-support": "Support", "marketing": "Marketing", "sales": "Sales",
"finance": "Finance", "hr": "HR", "legal": "Legal", "writing": "Writing",
"education": "Education", "healthcare": "Healthcare", "operations": "Operations",
"management": "Management", "other": "Other",
}
def fetch(client):
"""Starts the actor and waits, or loads an earlier run. Returns run and rows."""
replay = os.environ.get("REPLAY_RUN_ID")
if replay:
run = client.run(replay).get()
else:
run = client.actor(ACTOR).call(
run_input=RUN_INPUT,
max_total_charge_usd=MAX_CHARGE_USD,
run_timeout=timedelta(minutes=15),
)
if run is None:
sys.exit(f"Run {replay} not found")
if run.status != "SUCCEEDED":
sys.exit(f"Actor run ended {run.status}: {run_url(run)}")
return run, list(client.dataset(run.default_dataset_id).iterate_items(clean=True))
def run_url(run):
return f"{CONSOLE}/actors/{run.act_id}/runs/{run.id}"
def build_messages(run, rows):
"""Turns dataset rows into Slack Block Kit messages; [] when there is nothing new."""
boards, problems, jobs = [], [], defaultdict(list)
for row in rows:
if row.get("type") == "board":
boards.append(row)
problems += board_problems(row)
elif row.get("type") == "error":
problems.append(f"{row.get('boardName') or row.get('board')}: {row['error']}")
elif row.get("jobId"):
jobs[row.get("category") or "other"].append(row)
total = sum(len(group) for group in jobs.values())
if not total and not problems:
return []
with_pay = sum(1 for group in jobs.values() for job in group
if job.get("salaryText"))
noun = "job" if total == 1 else "jobs"
headline = f"{total} new remote {noun} for your profile"
if with_pay:
headline += f", {with_pay} with a stated salary"
read = sum(b.get("jobsFetched") or 0 for b in boards)
header = [
{"type": "header", "text": {"type": "plain_text", "text": headline}},
context(f"Since the last check · {read:,} listings read on {len(boards)} boards"
f" · <{run_url(run)}|Apify run>"),
]
biggest_first = sorted(jobs.items(), key=lambda item: -len(item[1]))
sections = [category_blocks(cat, group, run) for cat, group in biggest_first]
if problems: # a context block holds at most 10 elements
unique = list(dict.fromkeys(problems)) # a board error is reported once
notes = [mrkdwn("⚠️ " + esc(clip(p, 280))) for p in unique[:10]]
sections.append([{"type": "context", "elements": notes}])
return pack(header, sections, fallback=headline)
def board_problems(b):
who = b.get("boardName") or b["board"]
if b.get("stoppedBy") == "chargeLimit":
yield f"{who}: stopped at the ${MAX_CHARGE_USD} cap; raise MAX_CHARGE_USD"
if b.get("status") == "ERROR":
yield f"{who}: {b.get('note') or 'could not be read'}"
def category_blocks(category, group, run):
"""One section per category: jobs with a stated salary first, then newest first."""
name = CATEGORY_NAMES.get(category, category.title())
blocks = [section(f"*{esc(name)}* · {len(group)} new")]
paid = sorted([j for j in group if j.get("salaryText")],
key=lambda j: j.get("salaryAnnualMax") or j.get("salaryAnnualMin") or 0,
reverse=True)
rest = sorted([j for j in group if not j.get("salaryText")],
key=lambda j: j.get("postedAt") or "", reverse=True)
blocks += [section(job_line(job)) for job in (paid + rest)[:SHOWN]]
if len(group) > SHOWN:
dataset = f"{CONSOLE}/storage/datasets/{run.default_dataset_id}"
more = len(group) - SHOWN
blocks.append(context(f"+{more} more in the <{dataset}|run's dataset>"))
return blocks
def job_line(job):
"""One job per line: title, company, regions, pay, type, link; board named below."""
mark = "💰 " if job.get("salaryText") else "• "
parts = [f"{mark}*{esc(clip(job.get('title') or '?', 90))}*",
esc(clip(job.get("company") or "?", 50))]
regions = job.get("regions") or []
if job.get("worldwide"):
where = "Worldwide"
elif len(regions) > 3:
where = f"{regions[0]}, {regions[1]} +{len(regions) - 2} more"
else:
where = ", ".join(regions) if regions else (job.get("location") or None)
for value in (where, job.get("salaryText"), job.get("employmentType")):
if value:
parts.append(esc(clip(value, 60)))
line = " · ".join(parts)
if job.get("url"):
line += f" · <{job['url']}|open>"
board = job.get("boardName") or job.get("board") or "?"
via = f"via {esc(board)}" # the boards ask to be named next to the link
also = [a.get("boardName") for a in job.get("alsoOn") or [] if a.get("boardName")]
if also:
via += f", also on {esc(', '.join(also[:3]))}"
posted = f"posted {job['postedAt'][:10]} · " if job.get("postedAt") else ""
return line + f"\n_{posted}{via}_"
def pack(header, sections, fallback, limit=50):
"""Slack takes at most 50 blocks per message: split between categories, not inside."""
messages, blocks = [], list(header)
for part in sections:
if len(blocks) + len(part) > limit:
messages.append(blocks)
blocks = []
blocks += part
messages.append(blocks)
return [{"text": fallback, "blocks": b} for b in messages]
def post(webhook, message):
"""Posts one message. Retries rate limits, server errors and network failures."""
data = json.dumps(message).encode()
for attempt in range(4):
request = urllib.request.Request(
webhook, data=data, headers={"Content-Type": "application/json"}
)
try:
with urllib.request.urlopen(request, timeout=30):
return
except urllib.error.HTTPError as e:
if (e.code != 429 and e.code < 500) or attempt == 3:
reason = e.read().decode()[:200]
raise RuntimeError(f"Slack answered HTTP {e.code}: {reason}") from None
time.sleep(int(e.headers.get("Retry-After") or 2**attempt))
except urllib.error.URLError as e:
if attempt == 3:
raise RuntimeError(f"Slack unreachable: {e.reason}") from None
time.sleep(2**attempt)
def section(text):
return {"type": "section", "text": mrkdwn(text)}
def context(text):
return {"type": "context", "elements": [mrkdwn(text)]}
def mrkdwn(text):
return {"type": "mrkdwn", "text": text}
def esc(text):
return str(text).replace("&", "&").replace("<", "<").replace(">", ">")
def clip(text, limit):
return text if len(text) <= limit else text[:limit].rsplit(" ", 1)[0] + " …"
def main():
token, webhook, dry_run = (os.environ.get(k) for k in
("APIFY_TOKEN", "SLACK_WEBHOOK_URL", "DRY_RUN"))
if not token or not (webhook or dry_run): # checked before paying for a run
sys.exit("Set APIFY_TOKEN and SLACK_WEBHOOK_URL (or DRY_RUN=1) first.")
run, rows = fetch(ApifyClient(token))
messages = build_messages(run, rows)
print(f"run {run.id}: {len(rows)} rows, {len(messages)} message(s)", file=sys.stderr)
if dry_run:
print(json.dumps(messages, indent=2, ensure_ascii=False))
return
for message in messages:
try:
post(webhook, message)
except RuntimeError as e:
sys.exit(f"{e}\nNothing was skipped: "
f"REPLAY_RUN_ID={run.id} uv run remote_jobs_digest.py")
if __name__ == "__main__":
main()The parts worth a second look
Starting the run. call() starts the actor and blocks until it finishes. The spending cap and the run timeout bound the worst case. Any status other than SUCCEEDED exits non-zero with a link to the run, so the scheduler marks the job failed and GitHub emails you.
def fetch(client):
"""Starts the actor and waits, or loads an earlier run. Returns run and rows."""
replay = os.environ.get("REPLAY_RUN_ID")
if replay:
run = client.run(replay).get()
else:
run = client.actor(ACTOR).call(
run_input=RUN_INPUT,
max_total_charge_usd=MAX_CHARGE_USD,
run_timeout=timedelta(minutes=15),
)
if run is None:
sys.exit(f"Run {replay} not found")
if run.status != "SUCCEEDED":
sys.exit(f"Actor run ended {run.status}: {run_url(run)}")
return run, list(client.dataset(run.default_dataset_id).iterate_items(clean=True))Grouping and the salary-first order. One group per category, biggest first. Inside a group, listings with a stated salary come first, sorted by the top of the annualized range, then the rest newest first. The line under each job names the board, which is what the boards ask of anyone who shows their listings, and the other boards that carry the same job.
def category_blocks(category, group, run):
"""One section per category: jobs with a stated salary first, then newest first."""
name = CATEGORY_NAMES.get(category, category.title())
blocks = [section(f"*{esc(name)}* · {len(group)} new")]
paid = sorted([j for j in group if j.get("salaryText")],
key=lambda j: j.get("salaryAnnualMax") or j.get("salaryAnnualMin") or 0,
reverse=True)
rest = sorted([j for j in group if not j.get("salaryText")],
key=lambda j: j.get("postedAt") or "", reverse=True)
blocks += [section(job_line(job)) for job in (paid + rest)[:SHOWN]]
if len(group) > SHOWN:
dataset = f"{CONSOLE}/storage/datasets/{run.default_dataset_id}"
more = len(group) - SHOWN
blocks.append(context(f"+{more} more in the <{dataset}|run's dataset>"))
return blocks
def job_line(job):
"""One job per line: title, company, regions, pay, type, link; board named below."""
mark = "💰 " if job.get("salaryText") else "• "
parts = [f"{mark}*{esc(clip(job.get('title') or '?', 90))}*",
esc(clip(job.get("company") or "?", 50))]
regions = job.get("regions") or []
if job.get("worldwide"):
where = "Worldwide"
elif len(regions) > 3:
where = f"{regions[0]}, {regions[1]} +{len(regions) - 2} more"
else:
where = ", ".join(regions) if regions else (job.get("location") or None)
for value in (where, job.get("salaryText"), job.get("employmentType")):
if value:
parts.append(esc(clip(value, 60)))
line = " · ".join(parts)
if job.get("url"):
line += f" · <{job['url']}|open>"
board = job.get("boardName") or job.get("board") or "?"
via = f"via {esc(board)}" # the boards ask to be named next to the link
also = [a.get("boardName") for a in job.get("alsoOn") or [] if a.get("boardName")]
if also:
via += f", also on {esc(', '.join(also[:3]))}"
posted = f"posted {job['postedAt'][:10]} · " if job.get("postedAt") else ""
return line + f"\n_{posted}{via}_"Posting. Slack takes at most 50 blocks per message and 3,000 characters per section, so titles are clipped, eight jobs are shown per category, and a long digest is split between categories, never inside one. Rate limits, server errors and network failures are retried with the delay Slack asks for; anything else fails the job at once, with the run's ID in the error.
def post(webhook, message):
"""Posts one message. Retries rate limits, server errors and network failures."""
data = json.dumps(message).encode()
for attempt in range(4):
request = urllib.request.Request(
webhook, data=data, headers={"Content-Type": "application/json"}
)
try:
with urllib.request.urlopen(request, timeout=30):
return
except urllib.error.HTTPError as e:
if (e.code != 429 and e.code < 500) or attempt == 3:
reason = e.read().decode()[:200]
raise RuntimeError(f"Slack answered HTTP {e.code}: {reason}") from None
time.sleep(int(e.headers.get("Retry-After") or 2**attempt))
except urllib.error.URLError as e:
if attempt == 3:
raise RuntimeError(f"Slack unreachable: {e.reason}") from None
time.sleep(2**attempt)3Run it on your machine
export APIFY_TOKEN=apify_api_... # Console > Settings > API & Integrations
DRY_RUN=1 uv run remote_jobs_digest.py > messages.json # real run, nothing postedThe dry run prints the messages to messages.json and the run's ID to the terminal, and posts nothing. Paste one message into Slack's Block Kit Builder to see it rendered.
It is still a real run, so it moves the checkpoint forward: running again would find nothing new. To post exactly what you just inspected, replay that run instead:
export SLACK_WEBHOOK_URL=https://hooks.slack.com/services/...
REPLAY_RUN_ID=<run id from the dry run> uv run remote_jobs_digest.py # posts that run's jobsThe checkpoint moves when the run completes, before Slack sees anything. If Slack is down, the job fails, and its log prints the exact REPLAY_RUN_ID=… command that posts the same run later. The rows stay in the run's dataset in your Apify account for your plan's retention period, so no job is lost.
4Schedule it
Put the workflow next to the script:
name: Remote jobs digest
on:
schedule:
- cron: "37 6 * * *" # every day 06:37 UTC, off the busy full hour
workflow_dispatch: # the "Run workflow" button, for tests
# Two overlapping runs would read one checkpoint and post the same jobs twice.
concurrency: remote-jobs-digest
jobs:
digest:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v7
- uses: astral-sh/setup-uv@v10
- run: uv run remote_jobs_digest.py
env:
APIFY_TOKEN: ${{ secrets.APIFY_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}Add the two secrets and start a first run without waiting for tomorrow:
gh secret set APIFY_TOKEN # paste the token when asked
gh secret set SLACK_WEBHOOK_URL
gh workflow run "Remote jobs digest" # first digest now instead of tomorrow morning- 06:37, not 07:00. GitHub delays scheduled jobs at the top of the hour, when most of them start.
- Every day. Boards post on weekends too, and a daily run is what the boards ask for: Jobicy allows one pass an hour, Remotive (if you opt in) a few a day.
concurrencykeeps two runs from overlapping. Two runs would read the same checkpoint and post the same jobs twice.- Public repositories: GitHub disables scheduled workflows after 60 days without activity in a public repository. Keep the job in a private one, or re-enable it when GitHub emails you.
What it costs
You pay per job the actor returns. Board records and errors are free, filtered-out listings are never charged, and the first 50 jobs each month are free for every account. For one profile that matches about 20 new jobs a day:
| Rows | Count | Price | Per month |
|---|---|---|---|
| New matching jobs, every day | ≈ 600 | $0.0006 | $0.36 |
| First run: the last 7 days of matches, up to 200 | ≤ 200 | $0.0006 | ≤ $0.12 once |
| Board records, errors, start fee | 7 a day | free / $0.00005 | $0.00 |
| Total | ≈ $0.40 |
GitHub Actions needs about a minute a day, inside the free minutes of any plan. Paid Apify plans pay less per row, up to 40% less on Gold. A broad profile with no keywords costs about ten times this; keywords, categories and minSalary cut it because the actor filters before it charges.
Running it for real
- A capped run re-sends rather than skips. When a run hits the spending cap, the actor marks the boards
PARTIALand leaves the checkpoint where it was. The next run walks from the old checkpoint again: you may see a few jobs twice, but you never miss one. The message shows a warning so you can raiseMAX_CHARGE_USD. - Hacker News is free text. The actor parses the
Company | Role | Location | …line of each post; a post that does not follow it comes through as Open roles at … (see the post), and the description holds the whole post. Candidates' own adverts in the thread are skipped. - Attribution. Each board asks that its listings be shown with its name and a link to the original; the digest does both. Keep that if you forward the rows anywhere else.
- One checkpoint store per profile. Two digests sharing a
checkpointStoreNamewould split each other's jobs.
Variations
- Discord or Microsoft Teams:
build_messages()andpost()are the only Slack-specific parts; swap them for the other webhook format. - Only jobs with a salary: set
"requireSalary": trueinRUN_INPUT; the actor filters before it charges. - Several profiles: run the script once per profile, each with its own
checkpointStoreNameand webhook. - A weekly market snapshot instead of alerts: drop the checkpoint, set
postedAfter: "7d"andmaxJobs: 2000, and write the rows to a sheet with Apify's Google Sheets integration.
Troubleshooting
Nothing gets posted
Either there were no new matches (the log says so) or the checkpoint is further ahead than you expect, for example after a dry run. To start over, delete the key-value store named in checkpointStoreName under Storage → Key-value stores in the Apify Console.
Far fewer jobs than expected
Open the run's dataset and read the board rows: jobsFetched against jobsMatched shows which filter removed what, and topRegions shows how the boards word locations. seniority is the usual culprit: many titles state no level, and those jobs are dropped when the filter is set.
A Jobicy error with HTTP 429
Jobicy allows one pass an hour. The other boards were delivered; the next scheduled run reads Jobicy again.
Slack answered HTTP 403, 404 or 410
The response names the reason: a revoked or mistyped webhook (invalid_token, no_service) or an archived channel (channel_is_archived). Create a new webhook, update the secret, then replay the failed run.
"stopped at the $0.50 cap"
The run delivered more jobs than the cap allows, usually on the first run with a broad profile. Raise MAX_CHARGE_USD or tighten the profile; nothing was skipped, the next run continues from the old checkpoint.