1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "feedUrls": ["https://feeds.twit.tv/twit.xml"],
10 "itemsToCheck": 5,
11 "checks": [
12 "range_support",
13 "content_type",
14 "declared_length_match",
15 "redirect_depth",
16 "https_only",
17 "guid_stability",
18 ],
19 "maxRedirects": 5,
20 "probeBytes": 65536,
21 "lengthTolerancePercent": 1,
22 "maxEnclosures": 100,
23 "timeoutSeconds": 20,
24 "maxFeedBytes": 10485760,
25 "concurrency": 4,
26 "baselineStoreName": "feed-enclosure-baseline",
27 "updateBaseline": True,
28 "userAgent": "FeedEnclosureGate/0.1 (+https://apify.com)",
29}
30
31
32run = client.actor("kingii98/podcast-and-newsletter-feed-enclosure-delivery-gate").call(run_input=run_input)
33
34
35print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
36for item in client.dataset(run.default_dataset_id).iterate_items():
37 print(item)
38
39