1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "symbols": [
10 "AAPL",
11 "MSFT",
12 ],
13 "tickers": [],
14 "mode": "quote",
15 "feeds": [
16 "topNews",
17 "finance",
18 "earnings",
19 "economy",
20 "business",
21 "technology",
22 "politics",
23 "energy",
24 "realEstate",
25 "autos",
26 "smallBusiness",
27 "travel",
28 "life",
29 ],
30 "articlesPerFeed": 15,
31 "onlyNew": False,
32 "fullText": True,
33 "maxItems": 0,
34}
35
36
37run = client.actor("publicmoney/cnbc-scraper").call(run_input=run_input)
38
39
40print(f"πΎ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
41for item in client.dataset(run.default_dataset_id).iterate_items():
42 print(item)
43
44