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 "queries": [
13 "Carrefour"
14 ],
15 "urls": [
16 "https://gowork.fr/b-hive-mulhouse",
17 "https://gowork.fr/le-carrefour-de-la-fleur-montigny-en-gohelle,1",
18 "https://gowork.fr/randstad-france",
19 "https://www.gowork.fr/b-hive-mulhouse",
20 "https://gowork.fr/search",
21 "https://gowork.fr/search?q=Carrefour",
22 "https://gowork.fr/search?q=Carrefour&page=2",
23 "https://gowork.de/search?q=Aldi",
24 "https://gowork.de/search?q=Aldi&page=2",
25 "https://gowork.fr/avis/paris;l",
26 "https://gowork.fr/avis/marseille;l?page=2",
27 "https://gowork.fr/avis/location-de-logements;tr",
28 "https://gowork.fr/avis/restaurants-et-services-alimentaires;tr?page=2",
29 "https://gowork.fr/avis/7112b;a",
30 "https://gowork.fr/sitemap_company_1.xml.gz",
31 "https://gowork.fr/sitemap_cities_1.xml.gz",
32 "https://gowork.fr/sitemap.xml",
33 "https://gowork.de/sitemap.xml"
34 ],
35 "proxy": {
36 "useApifyProxy": true,
37 "apifyProxyGroups": [
38 "RESIDENTIAL"
39 ],
40 "apifyProxyCountry": "FR"
41 },
42 "incrementalMode": false,
43 "emitUnchanged": false,
44 "emitExpired": false
45};
46
47
48const run = await client.actor("abotapi/gowork-eu-scraper").call(input);
49
50
51console.log('Results from dataset');
52console.log(`๐พ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
53const { items } = await client.dataset(run.defaultDatasetId).listItems();
54items.forEach((item) => {
55 console.dir(item);
56});
57
58