1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "search",
12 "locations": [
13 "san-francisco"
14 ],
15 "startUrls": [
16 {
17 "url": "https://wellfound.com/location/san-francisco"
18 },
19 {
20 "url": "https://wellfound.com/location/san-francisco?page=2"
21 },
22 {
23 "url": "https://wellfound.com/jobs"
24 },
25 {
26 "url": "https://wellfound.com/jobs?page=2"
27 },
28 {
29 "url": "https://wellfound.com/role/python-developer"
30 },
31 {
32 "url": "https://wellfound.com/role/python-developer?page=2"
33 },
34 {
35 "url": "https://wellfound.com/role/l/software-engineer/san-francisco"
36 },
37 {
38 "url": "https://wellfound.com/role/r/software-engineer"
39 },
40 {
41 "url": "https://wellfound.com/jobs/4839998-senior-software-engineer-ruby-rails-mvr"
42 },
43 {
44 "url": "https://www.wellfound.com/location/london"
45 },
46 {
47 "url": "https://angel.co/location/london"
48 }
49 ],
50 "keywords": [
51 "python"
52 ],
53 "proxy": {
54 "useApifyProxy": true,
55 "apifyProxyGroups": [
56 "RESIDENTIAL"
57 ]
58 },
59 "incrementalMode": false,
60 "emitUnchanged": false,
61 "emitExpired": false,
62 "ignoreFieldsForChanges": []
63};
64
65
66const run = await client.actor("abotapi/wellfound-jobs-scraper").call(input);
67
68
69console.log('Results from dataset');
70console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
71const { items } = await client.dataset(run.defaultDatasetId).listItems();
72items.forEach((item) => {
73 console.dir(item);
74});
75
76