1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "TRENDING",
10 "searchQueries": ["billionaire"],
11 "listingUrls": [
12 { "url": "https://www.goodshort.com/drama/nanny-for-hire-mommy-forever-31001684652" },
13 { "url": "https://www.goodshort.com/episode/nanny-for-hire-mommy-forever-31001684652/001-62495257" },
14 { "url": "https://www.goodshort.com/tag/revenge-playlets-videos" },
15 { "url": "https://www.goodshort.com/dramas/romance-137-playlets" },
16 { "url": "https://www.goodshort.com/channel/Most-Trending" },
17 { "url": "https://www.goodshort.com/search/billionaire" },
18 { "url": "https://www.goodshort.com/tags/all" },
19 ],
20 "fetchDetails": True,
21 "fetchEpisodes": True,
22 "maxItems": 20,
23 "proxy": {
24 "useApifyProxy": True,
25 "apifyProxyGroups": ["RESIDENTIAL"],
26 },
27}
28
29
30run = client.actor("abotapi/goodshort-catalog-scraper").call(run_input=run_input)
31
32
33print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
34for item in client.dataset(run.default_dataset_id).iterate_items():
35 print(item)
36
37