1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "SHELF",
10 "searchQueries": ["billionaire"],
11 "genres": [
12 "Affair",
13 "Billionaire",
14 ],
15 "maxTags": 5,
16 "listingUrls": [
17 "https://www.reelshort.com/episodes/episode-1-daisy-tucker-and-mr-nyc-68955a832bc50c718b009d8d-fxcfjh1dzy",
18 "https://www.reelshort.com/shelf/new-release-short-movies-dramas-51003505",
19 "https://www.reelshort.com/movie-genres/affair-movies-QWZmYWly",
20 "https://www.reelshort.com/search?keywords=billionaire&type=movies",
21 "https://www.reelshort.com/movie-genres/all-movies",
22 "https://www.reelshort.com/tags/story-beats/affair-movies-676d210e4582b53a14081aeb",
23 ],
24 "fetchDetails": True,
25 "maxItems": 20,
26 "proxy": { "useApifyProxy": True },
27 "resumeFromRunId": "",
28 "stateKey": "",
29 "notionParentPageUrl": "",
30 "maxNotifyListings": 50,
31}
32
33
34run = client.actor("abotapi/reelshort-com-scraper").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