1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "feeds": [
12 {
13 "id": "21-cfr-11",
14 "name": "21 CFR Part 11",
15 "cfrTitle": 21,
16 "part": "11",
17 "keywords": "electronic records,electronic signatures"
18 },
19 {
20 "id": "40-cfr-60",
21 "name": "40 CFR Part 60",
22 "cfrTitle": 40,
23 "part": "60",
24 "keywords": "emissions,standards"
25 },
26 {
27 "id": "29-cfr-1910-1200",
28 "name": "29 CFR 1910.1200",
29 "cfrTitle": 29,
30 "part": "1910",
31 "section": "1200",
32 "keywords": "hazard communication"
33 }
34 ]
35};
36
37
38const run = await client.actor("taroyamada/ecfr-cfr-section-change-watch-scraper").call(input);
39
40
41console.log('Results from dataset');
42console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
43const { items } = await client.dataset(run.defaultDatasetId).listItems();
44items.forEach((item) => {
45 console.dir(item);
46});
47
48