Build a daily LinkedIn job alert in 25 lines of Python (no login, no browser)
说明与用途
一段25行Python脚本抓取指定关键词的所有新LinkedIn职位,按日追加未见职位到CSV,可通过cron或Apify调度器每日运行。
问题
Collect every new LinkedIn job posting for specific keywords daily and store them in a CSV without logging in or using a browser.
结果
The script runs in 25 lines, appends only new jobs to a CSV, and can be scheduled daily. It uses Apify’s actor to scrape public LinkedIn job pages without login.
工作流
- Install Python 3 and apify-client via pip.
- Create a free Apify account and obtain an API token.
- Set APIFY_TOKEN environment variable and run the script.
- The script calls the Apify actor with search queries, location, datePosted, workplaceTypes, maxJobsPerSearch, and onlyNewJobs=True.
- Retrieve jobs from the actor’s dataset.
- Write new jobs to linkedin_jobs.csv, appending if file exists.
- Print count of new jobs added.
- Schedule the script with cron or use Apify’s built‑in scheduler.
证据
I built the scraper used here. It's a paid Apify actor ($1 per 1,000 jobs; Apify's free monthly credit covers a small daily alert).
LinkedIn's job alerts email you a handful of matches whenever LinkedIn decides to. If you want every new posting for a search, in a spreadsheet, once a day, a short script does it.
Run it with APIFY_TOKEN=... python3 linkedin_jobs_to_csv.py.
The scraper reads LinkedIn's public, logged-out job pages. LinkedIn's User Agreement restricts automated access, so using it may break their terms and IPs can get blocked.
- 记录日期: 2026-10-22T16:26:06.700Z