1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "scrapeMode": "scrape",
12 "inputMode": "REMOTE",
13 "outputMode": "jobs",
14 "urls": [
15 {
16 "url": "https://wellfound.com/remote"
17 },
18 {
19 "url": "https://wellfound.com/location/new-york"
20 }
21 ],
22 "locations": [
23 "New York",
24 "San Francisco",
25 "London"
26 ],
27 "pageLimit": 1,
28 "maxItems": 80,
29 "onlyRemoteJobs": false,
30 "includeChangedJobs": true,
31 "includeRemovedJobs": true,
32 "resetMonitorState": false,
33 "monitorStateStoreName": "wellfound-jobs-monitor-state",
34 "maxRetries": 3,
35 "proxyConfiguration": {
36 "useApifyProxy": false
37 }
38};
39
40
41const run = await client.actor("trakk/wellfound-jobs-scraper").call(input);
42
43
44console.log('Results from dataset');
45console.log(`๐พ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
46const { items } = await client.dataset(run.defaultDatasetId).listItems();
47items.forEach((item) => {
48 console.dir(item);
49});
50
51