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 "all",
13 "latestNews",
14 "markets",
15 "analysis",
16 "research",
17 "magazine",
18 "bitcoin",
19 "ethereum",
20 "altcoins",
21 "blockchain",
22 "regulation"
23 ],
24 "tickers": [],
25 "articlesPerFeed": 20,
26 "onlyNew": false,
27 "fullText": true,
28 "maxItems": 0
29};
30
31
32const run = await client.actor("publicmoney/cointelegraph-scraper").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