51job Scraper
Pricing
from $0.11 / 1,000 job posting saveds
Go to Apify Store
51job Scraper
Scrape 51job jobs with salary, company, location, requirements, descriptions, tags, and URLs for China hiring intelligence.
51job Scraper
Pricing
from $0.11 / 1,000 job posting saveds
Scrape 51job jobs with salary, company, location, requirements, descriptions, tags, and URLs for China hiring intelligence.
You can access the 51job Scraper programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.
1import { ApifyClient } from 'apify-client';2
3// Initialize the ApifyClient with your Apify API token4// Replace the '<YOUR_API_TOKEN>' with your token5const client = new ApifyClient({6 token: '<YOUR_API_TOKEN>',7});8
9// Prepare Actor input10const input = {11 "keywords": [12 "python"13 ],14 "jobArea": "020000",15 "startUrls": [16 {17 "url": "https://we.51job.com/pc/search?keyword=python&searchType=2&jobArea=020000&sortType=0"18 }19 ],20 "maxItems": 20,21 "maxPages": 3,22 "pageSize": 20,23 "sortType": "0",24 "includeDescriptions": true25};26
27// Run the Actor and wait for it to finish28const run = await client.actor("automation-lab/51job-scraper").call(input);29
30// Fetch and print Actor results from the run's dataset (if any)31console.log('Results from dataset');32console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);33const { items } = await client.dataset(run.defaultDatasetId).listItems();34items.forEach((item) => {35 console.dir(item);36});37
38// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docsThe Apify API client for JavaScript is the official library that allows you to use 51job Scraper API in JavaScript or TypeScript, providing convenience functions and automatic retries on errors.
Install the apify-client
$npm install apify-clientOther API clients include: