1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "searchTerms": ["true crime"],
11 "categories": ["comedy"],
12 "region": "us",
13 "urls": [
14 "https://play.pocketcasts.com/podcasts/873e7420-042d-012e-f9a4-00163e1b201c",
15 "https://pocketcasts.com/podcast/the-joe-rogan-experience/873e7420-042d-012e-f9a4-00163e1b201c",
16 "https://pca.st/podcast/873e7420-042d-012e-f9a4-00163e1b201c",
17 "https://cache.pocketcasts.com/mobile/podcast/full/873e7420-042d-012e-f9a4-00163e1b201c",
18 "https://cache.pocketcasts.com/podcast/rating/873e7420-042d-012e-f9a4-00163e1b201c",
19 "https://lists.pocketcasts.com/category-comedy-us.json",
20 ],
21 "maxPodcasts": 10,
22 "maxResults": 1000,
23 "maxEpisodes": 100,
24 "maxEpisodesPerPodcast": 0,
25 "sortBy": "chartRank",
26 "includeEpisodes": True,
27 "includeRatings": True,
28 "proxyConfiguration": { "useApifyProxy": True },
29 "incrementalMode": False,
30 "emitUnchanged": False,
31 "emitExpired": False,
32 "maxNotifyListings": 50,
33}
34
35
36run = client.actor("abotapi/pocketcasts-podcast-scraper").call(run_input=run_input)
37
38
39print(f"๐พ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
40for item in client.dataset(run.default_dataset_id).iterate_items():
41 print(item)
42
43