1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "market": "america",
10 "filters": [
11 {
12 "left": "market_cap_basic",
13 "operation": "greater",
14 "right": 1000000000,
15 },
16 {
17 "left": "type",
18 "operation": "equal",
19 "right": "stock",
20 },
21 ],
22 "columns": [
23 "name",
24 "description",
25 "close",
26 "change",
27 "volume",
28 "market_cap_basic",
29 "sector",
30 "RSI",
31 "exchange",
32 "type",
33 ],
34 "sortBy": "market_cap_basic",
35 "sortOrder": "desc",
36 "maxItems": 20,
37 "proxyConfiguration": { "useApifyProxy": False },
38}
39
40
41run = client.actor("axiomworks/tradingview-screener-scraper").call(run_input=run_input)
42
43
44print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
45for item in client.dataset(run.default_dataset_id).iterate_items():
46 print(item)
47
48