1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "watches": [
12 {
13 "type": "query",
14 "keywords": "large language models",
15 "label": "LLM papers"
16 },
17 {
18 "type": "query",
19 "keywords": "CRISPR base editing",
20 "label": "Base editing"
21 },
22 {
23 "type": "author",
24 "orcid": "0000-0001-9161-999X",
25 "label": "Jennifer Doudna"
26 }
27 ],
28 "maxPerWatch": 10
29};
30
31
32const run = await client.actor("lone_rachis/scholarly-papers-watch").call(input);
33
34
35console.log('Results from dataset');
36console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
37const { items } = await client.dataset(run.defaultDatasetId).listItems();
38items.forEach((item) => {
39 console.dir(item);
40});
41
42