1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "city": "mumbai",
11 "category": "movies",
12 "urls": ["https://in.bookmyshow.com/explore/movies-mumbai"],
13 "maxItems": 20,
14 "maxPages": 0,
15 "fetchDetails": True,
16 "incrementalMode": False,
17 "emitUnchanged": False,
18 "emitExpired": False,
19 "maxNotifyListings": 50,
20 "proxyConfiguration": {
21 "useApifyProxy": True,
22 "apifyProxyGroups": ["RESIDENTIAL"],
23 "apifyProxyCountry": "IN",
24 },
25}
26
27
28run = client.actor("abotapi/bookmyshow-scraper").call(run_input=run_input)
29
30
31print(f"๐พ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
32for item in client.dataset(run.default_dataset_id).iterate_items():
33 print(item)
34
35