1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9    "googleSheetId": "1jNh9tJyyc7k6jcihQ8BGCkpZOsDmyyrql9TN45vjebI",
10    "worksheetName": "Sheet1",
11    "companies": [{
12            "company_name": "Test Financial Corp Ltd",
13            "symbol": "TESTFIN",
14            "exchange": "NSE",
15            "sector": "Financial Services",
16            "revenue": "1000 Cr",
17            "profit": "150 Cr",
18            "market_cap": "5000 Cr",
19            "pe_ratio": "15.5",
20            "debt_to_equity": "0.3",
21            "roe": "12.8",
22            "current_ratio": "1.2",
23            "dividend_yield": "2.5",
24            "_mock_data": True,
25            "_test_mode": True,
26            "_data_completeness": 100,
27            "_data_quality_score": 95,
28            "_extraction_timestamp": "2025-08-05T12:00:00.000Z",
29        }],
30    "startRow": 2,
31    "endRow": 2,
32    "batchSize": 1,
33    "batchIndex": 0,
34    "testMode": True,
35    "maxConcurrency": 1,
36    "waitForLoadMs": 500,
37    "urlDiscoveryTimeout": 3000,
38    "includeFinancialRatios": False,
39    "dataSource": "auto",
40}
41
42
43run = client.actor("shashghosh/comprehensive-financial-scraper").call(run_input=run_input)
44
45
46print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
47for item in client.dataset(run["defaultDatasetId"]).iterate_items():
48    print(item)
49
50