1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "startUrls": [
12 {
13 "url": "https://www.indeed.com/jobs?q=software+engineer&l=San+Francisco%2C+CA"
14 }
15 ],
16 "keywords": [
17 "software engineer"
18 ],
19 "location": "San Francisco, CA",
20 "datePosted": "3",
21 "radius": "",
22 "jobType": "",
23 "remoteWorkType": "",
24 "resumeKeywords": [
25 {
26 "keyword": "TypeScript",
27 "aliases": [
28 "TS",
29 "JS",
30 "JavaScript"
31 ]
32 },
33 {
34 "keyword": "Node.js",
35 "aliases": [
36 "Node",
37 "NodeJS"
38 ]
39 },
40 {
41 "keyword": "React",
42 "aliases": [
43 "RN",
44 "React Native",
45 "Expo",
46 "ReactJS"
47 ]
48 },
49 {
50 "keyword": "SQL",
51 "aliases": [
52 "PostgreSQL"
53 ]
54 },
55 {
56 "keyword": "Tools",
57 "aliases": [
58 "Git",
59 "Docker",
60 "Jira",
61 "Postman",
62 "GitHub",
63 "GitLab",
64 "GitHub Copilot",
65 "Webpack"
66 ]
67 }
68 ],
69 "jobLevel": ""
70};
71
72
73const run = await client.actor("cheap_scraper/indeed-job-scraper").call(input);
74
75
76console.log('Results from dataset');
77console.log(`πΎ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
78const { items } = await client.dataset(run.defaultDatasetId).listItems();
79items.forEach((item) => {
80 console.dir(item);
81});
82
83