1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "items": [
9 {
10 "url": "https://example.com/help/returns",
11 "title": "Returns and refunds",
12 "markdown": """# Returns and refunds
13
14## How long do I have to return an item?
15
16You can return unused items within 30 days of delivery. Start a return from the Orders page in your account and print the prepaid label.
17
18## When will I get my refund?
19
20Refunds are sent to the original payment method within 5 business days after the warehouse receives the item. Shipping fees are refunded only if the item arrived damaged.
21
22## Can I exchange an item instead?
23
24Yes. Choose Exchange instead of Refund when you start the return and pick the new size or colour. Exchanges ship free of charge.""",
25 },
26 {
27 "url": "https://example.com/help/shipping",
28 "title": "Shipping",
29 "markdown": """# Shipping
30
31## Where do you ship?
32
33We ship to the EU, the UK and the United States. Orders over 50 EUR ship free; smaller orders cost 4.90 EUR.
34
35## How fast is delivery?
36
37Standard delivery takes 2 to 4 business days in the EU and 5 to 8 business days to the UK and the US. Express delivery arrives the next business day in Germany and Austria when ordered before 2 pm.
38
39## How do I track my order?
40
41You get a tracking link by email as soon as the parcel leaves the warehouse. The same link is shown on the Orders page.""",
42 },
43 ] }
44
45
46run = client.actor("seasons-ai/site-to-knowledge-pack").call(run_input=run_input)
47
48
49print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
50for item in client.dataset(run.default_dataset_id).iterate_items():
51 print(item)
52
53