1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "offers": [
9 {
10 "id": "EXAMPLE-TRIAL",
11 "title": "Example streaming free trial",
12 "offerText": "Start your free trial today! Cancel anytime.",
13 },
14 {
15 "id": "EXAMPLE-GYM",
16 "title": "Example gym membership",
17 "offerText": "Membership $39.99/month, renews automatically until you cancel. To cancel, call our member services line or send a letter to your club.",
18 },
19 {
20 "id": "EXAMPLE-INTRO",
21 "title": "Example meal kit intro offer",
22 "offerText": "Introductory price $1 for the first 3 months! Renews automatically monthly until you cancel. Cancel online in your account.",
23 "consentPrechecked": True,
24 },
25 {
26 "id": "EXAMPLE-APP",
27 "title": "Example app subscription",
28 "offerText": "Start your 7-day free trial. After the trial, you'll be charged $9.99 per month. Your subscription renews automatically every month until you cancel. Cancel anytime online in Account settings; cancellation takes effect at the end of the current billing period.",
29 "consentText": "I agree to the automatic renewal terms above.",
30 },
31 ] }
32
33
34run = client.actor("ultimatemc/auto-renewal-disclosure-checker").call(run_input=run_input)
35
36
37print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
38for item in client.dataset(run.default_dataset_id).iterate_items():
39 print(item)
40
41