1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "text": "Apify is a cloud platform for web scraping and browser automation. Developers build Actors that extract structured data from websites, monitor prices, and feed machine learning pipelines. In 2024 the company expanded its Store with thousands of ready-made tools used by businesses in Europe, North America and Asia.Apify is a cloud platform for web scraping and browser automation. Developers build Actors that extract structured data from websites, monitor prices, and feed machine learning pipelines. In 2024 the company expanded its Store with thousands of ready-made tools used by businesses in Europe, North America and Asia.Apify is a cloud platform for web scraping and browser automation. Developers build Actors that extract structured data from websites, monitor prices, and feed machine learning pipelines. In 2024 the company expanded its Store with thousands of ready-made tools used by businesses in Europe, North America and Asia.",
10 "texts": [],
11}
12
13
14run = client.actor("hipersoft/text-splitter-chunker").call(run_input=run_input)
15
16
17print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
18for item in client.dataset(run.default_dataset_id).iterate_items():
19 print(item)
20
21