JobSpy について
JobSpyは、開発者や求職者向けの求人スクレイピングツール兼MCPサーバーです。複数の求人サイトを並行して検索し、求人情報をdataframeにまとめます。
主な機能
- 01複数の求人サイトを並行スクレイピング
- 02求人情報をdataframeに集約
- 03ブロック対策のプロキシ対応
- 04検索・出力オプション付きCLI
活用シーン
- 01複数の求人サイトの掲載情報を集約
- 02職種名と勤務地で求人を検索
- 03絞り込んだ結果をJSONLで保存
MCP 対応
`mcp-jobspy` MCPサーバーは、JobSpyの求人検索・スクレイピング機能をMCPクライアントに提供します。`uvx mcp-jobspy@latest`で起動できます。
設定
ローカルサーバーの設定はどのクライアントでも共通です。コピーしてクライアントの MCP 設定ファイルに貼り付けてください。
ツール
2掲載時のツール一覧 · 5 日前に更新
| パラメーター | 型 | 必須 | 説明 |
|---|---|---|---|
| offset | integer | いいえ | 各サイトの最初の N 件をスキップします。 |
| ca_cert | any | いいえ | プロキシ用 CA バンドルのファイルパス。 |
| proxies | any | いいえ | ローテーションして使用するプロキシ URL。例: http://user:pass@host:port。URL 1 つまたはリストを指定します。 |
| save_to | any | いいえ | この検索の全レコードも指定したファイルに保存します。ファイル名に .csv、.json、または .jsonl を指定します。 |
| distance | integer | いいえ | 所在地からの距離(マイル)。 |
| job_type | any | いいえ | 雇用形態。 |
| location | any | いいえ | 市区町村、州、または国。 |
| hours_old | any | いいえ | 過去 N 時間以内に掲載。 |
| is_remote | boolean | いいえ | リモート求人のみ。 |
| site_name | any | いいえ | 検索する求人サイト。デフォルト: indeed、linkedin、zip_recruiter、glassdoor。地域別: bayt(中東)、naukri(インド)、bdjobs(バングラデシュ)、hellowork(フランス)。 |
| easy_apply | boolean | いいえ | 求人サイト上で直接応募できる求人のみ。 |
| user_agent | any | いいえ | 送信する User-Agent ヘッダー。 |
| search_term | any | いいえ | キーワード。例:'nurse'。 |
| country_indeed | string | いいえ | Indeed および Glassdoor の国。例:'uk'。 |
| results_wanted | integer | いいえ | サイトごとの件数。 |
| fetch_description | boolean | いいえ | 各求人のページも読み込み、職務内容を取得します。検索時に職務内容を返すのは Indeed のみです。他のサイトでは求人ごとにリクエストが 1 件追加され、処理が遅くなり、ブロックされる可能性も高まります。 |
| description_format | any | いいえ | 職務内容テキストの形式。 |
| linkedin_company_ids | any | いいえ | LinkedIn 検索対象を限定する LinkedIn 企業 ID。 |
| enforce_annual_salary | boolean | いいえ | 時給、日給、週給、月給を年収に換算します。 |
詳細
JobSpyは、人気の求人サイトから求人情報を集約する求人スクレイピングライブラリです。1つのツールで次のことができます。
- LinkedIn、Indeed、Glassdoor、ZipRecruiter、Bayt、Naukri、BDJobs、HelloWorkから求人情報を並行してスクレイピングします
- 求人情報をデータフレームに集約します
- ブロックを回避するためのプロキシをサポートします
インストール
pip install -U python-jobspy
Python のバージョンは 3.10 以上が必要です
使用方法
from jobspy import scrape_jobs
jobs = scrape_jobs(
site_name=["indeed", "linkedin", "zip_recruiter", "glassdoor"], # also "bayt", "naukri", "bdjobs", "hellowork"
search_term="software engineer",
location="San Francisco, CA",
results_wanted=20,
hours_old=72,
country_indeed="USA",
# fetch_description=True, # read each job's page on boards whose search results have no description (slower)
# proxies=["user:pass@host:port", "localhost"],
)
print(f"Found {len(jobs)} jobs")
print(jobs.head())
jobs.to_csv("jobs.csv", index=False)
出力
SITE TITLE COMPANY LOCATION JOB_TYPE INTERVAL MIN_AMOUNT MAX_AMOUNT JOB_URL DESCRIPTION
indeed Software Engineer AMERICAN SYSTEMS Arlington, VA, USA None yearly 150000 200000 https://www.indeed.com/viewjob?jk=5e409e577046... THIS POSITION COMES WITH A 10K SIGNING BONUS!...
indeed Senior Software Engineer TherapyNotes.com Philadelphia, PA, USA fulltime yearly 110000 135000 https://www.indeed.com/viewjob?jk=da39574a40cb... About Us TherapyNotes is the national leader i...
linkedin Software Engineer - Early Career Lockheed Martin Sunnyvale, CA, USA fulltime yearly None None https://www.linkedin.com/jobs/view/3693012711 Description:By bringing together people that u...
linkedin Full-Stack Software Engineer Rain New York, NY, USA fulltime yearly None None https://www.linkedin.com/jobs/view/3696158877 Rain’s mission is to create the fastest and ea...
zip_recruiter Software Engineer - New Grad ZipRecruiter Santa Monica, CA, USA fulltime yearly 130000 150000 https://www.ziprecruiter.com/jobs/ziprecruiter... We offer a hybrid work environment. Most US-ba...
zip_recruiter Software Developer TEKsystems Phoenix, AZ, USA fulltime hourly 65 75 https://www.ziprecruiter.com/jobs/teksystems-0... Top Skills' Details• 6 years of Java developme...
コマンドライン
このパッケージをインストールすると、以下の scrape_jobs() パラメーターと同じオプションを持つ jobspy コマンドが利用できます。jobspy -h で、オプション、出力フィールド、終了コードを確認できます。
uv tool install python-jobspy
jobspy "software engineer" --site indeed,linkedin --location Chicago -n 20
jobspy nurse --site indeed,linkedin --hours-old 24 -o jobs.jsonl
jobspy "data analyst" --remote --fields title,company,job_url
MCP サーバー
mcp-jobspyは、uvx mcp-jobspy@latestで実行するMCP サーバーです。セットアップ、ツール、プロキシについては、mcp/README.mdをご覧ください。
ほとんどのクライアントでは、標準設定を使用できます。
{
"mcpServers": {
"jobspy": {
"command": "uvx",
"args": ["mcp-jobspy@latest"]
}
}
}
scrape_jobs()のパラメーター
Optional
├── site_name (list|str):
| linkedin, zip_recruiter, indeed, glassdoor, google, bayt, bdjobs, naukri, hellowork
| (default is all)
│
├── search_term (str)
|
├── google_search_term (str)
| search term for google jobs. This is the only param for filtering google jobs.
│
├── location (str)
│
├── distance (int):
| in miles, default 50
│
├── job_type (str):
| fulltime, parttime, contract, temporary, internship, perdiem, other, volunteer
│
├── proxies (list|str):
| in format ['user:pass@host:port', 'localhost'], or a single proxy as a string
| each job board scraper will round robin through the proxies
| socks proxies on LinkedIn, Indeed and BDJobs need pip install "requests[socks]"
|
├── is_remote (bool)
│
├── results_wanted (int):
| number of job results to retrieve for each site specified in 'site_name'
│
├── easy_apply (bool):
| filters for jobs that are hosted on the job board site
|
├── user_agent (str):
| override the default user agent which may be outdated
│
├── description_format (str):
| markdown, html, plain (Format type of the job descriptions. Default is markdown.)
│
├── offset (int):
| skips that many results (e.g. 25 skips the first 25 and starts from the 26th)
│
├── hours_old (int):
| filters jobs by the number of hours since the job was posted
| (Glassdoor filters by whole days, so it rounds up to the next day.)
│
├── verbose (int) {0, 1, 2}:
| Controls the verbosity of the runtime printouts
| (0 prints only errors, 1 is errors+warnings, 2 is all logs. Default is 1.)
│
├── fetch_description (bool):
| for boards whose search results don't include the job description: fetches each job's
| page for the description and other details (e.g. job type). Without it these are empty
| for those boards. Adds one request per job, so use proxies for larger searches
│
├── linkedin_fetch_description (bool):
| deprecated, use fetch_description (still works; removed in 2.0)
│
├── linkedin_company_ids (list[int]):
| searches for linkedin jobs with specific company ids
|
├── country_indeed (str):
| filters the country on Indeed & Glassdoor (default is usa; see below for the names)
|
├── enforce_annual_salary (bool):
| converts wages to annual salary
|
├── ca_cert (str)
| path to CA Certificate file for proxies
求人検索に対応している国
LinkedInでは世界中の求人を検索でき、locationパラメーターのみを使用します。
ZipRecruiter
ZipRecruiterでは米国/カナダの求人を検索でき、locationパラメーターのみを使用します。
Indeed / Glassdoor
Indeed と Glassdoor は、country_indeed パラメーターで選択したほとんどの国に対応しています(デフォルトは usa)。さらに、location
パラメーターを使うと、必要に応じて都市や州などで場所を絞り込めます。
Indeed で検索するときは、以下の国を指定できます(正確な名前を使用してください。* は Glassdoor に対応している国です)。
| Argentina* | Australia* | Austria* | Bahrain |
| Belgium* | Brazil* | Canada* | Chile |
| China | Colombia | Costa Rica | Czech Republic |
| Denmark | Ecuador | Egypt | Finland |
| France* | Germany* | Greece | Hong Kong* |
| Hungary | India* | Indonesia | Ireland* |
| Israel | Italy* | Japan | Kuwait |
| Luxembourg | Malaysia* | Mexico* | Morocco |
| Netherlands* | New Zealand* | Nigeria | Norway |
| Oman | Pakistan | Panama | Peru |
| Philippines | Poland | Portugal | Qatar |
| Romania | Saudi Arabia | Singapore* | South Africa |
| South Korea | Spain* | Sweden | Switzerland* |
| Taiwan | Thailand | Turkey | Ukraine |
| United Arab Emirates | UK* | USA* | Uruguay |
| Venezuela | Vietnam* |
Bayt
Bayt は、location に対応地域を指定しない限り、すべての国を検索します。例:"Dubai, UAE" または "Saudi Arabia"。
BDJobs
BDJobs はバングラデシュを検索します。location には、部門または地区を指定します。例:"Dhaka" または "Chattogram Division"。
Naukri
Naukri はインドを検索します。location には都市を指定します。例:"Pune"。
HelloWork
HelloWork はフランスを検索します。location にはフランスの都市、郵便番号、または地域を指定します。例:"Lyon"。求人のほとんどはフランス語で掲載されているため、フランス語の検索語を使うと、より多くの求人が見つかります。
注意事項
- 現在、Indeed はレート制限がなく、最も優れたスクレーパーです。
- Indeed の
date_postedは、求人が Indeed に追加された日付です。hours_oldで絞り込む際に使われる日付と同じです。 - ほとんどの求人サイトのエンドポイントでは、1 回の検索で取得できる求人は約 1000 件までです。
- LinkedIn は、短時間に集中したリクエストを 429 でレート制限します。この制限は約 1 分で解除されます。大規模な検索にはプロキシを使用してください。
- Glassdoor は、1 秒あたり約 2 件を超えるリクエストをレート制限します。
よくある質問
Q: ブロックされたサイトと、求人がないサイトはどう見分ければよいですか?
A: エラーや無視されたオプションは発生時にログに記録され、結果の attrs にも同じメッセージが含まれるため、コードから読み取れます。
jobs.attrs["errors"] # {"linkedin": "response status code 429 (blocked: use a proxy)"}
jobs.attrs["warnings"] # {"bdjobs": ["job_type internship isn't supported, ignoring it"]}
Q: Indeed で関係のない職種が表示されるのはなぜですか?
A: Indeed は説明文も検索対象にします。
- 単語を除外するには - を使います
- 完全一致には "" を使います
Indeed での適切なクエリの例
search_term='"engineering intern" software summer (java OR python OR c++) 2025 -tax -marketing'
この検索では説明文とタイトルが対象になり、「software」「summer」「2025」と、いずれかの言語を含める必要があります。また、「engineering intern」と完全一致し、「tax」と「marketing」は含まれません。
Q: "google" を使うと結果が表示されないのはなぜですか?
A: Google Jobs は現在利用できません。
Q: 応答コード 429 が返ってきました。
A: リクエストを送りすぎたため、サイトにブロックされました。求人サイトはどこも積極的にリクエストをブロックします。以下をおすすめします。
- スクレイピングの間隔を空けてください(間隔はサイトによって異なります)。
- proxies パラメーターを使って IP アドレスを変更してみてください。
JobPost スキーマ
JobPost
├── id
├── site
├── job_url
├── job_url_direct
├── title
├── company
├── location
├── date_posted
├── job_type: fulltime, parttime, internship, contract, temporary, ...
├── salary_source: direct_data, description (parsed from posting)
├── interval: yearly, monthly, weekly, daily, hourly
├── min_amount
├── max_amount
├── currency
├── is_remote
├── job_level
├── job_function
├── listing_type
├── emails
├── description
├── company_industry
├── company_url
├── company_logo
├── company_url_direct
├── company_addresses
├── company_num_employees
├── company_revenue
├── company_description
├── skills
├── experience_range
├── company_rating
├── company_reviews_count
├── vacancy_count
└── work_from_home_type
求人サイトがその項目を提供していない場合、列は空になります。
コメント
AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。