1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "requests": [
10 {
11 "request_type": "View",
12 "url": "https://www.csfd.cz/film/17592-ctyri-svatby-a-jeden-pohreb/prehled/",
13 },
14 {
15 "request_type": "View",
16 "url": "https://www.csfd.cz/film/1490468-survivor-cesko-slovensko/prehled/",
17 },
18 {
19 "request_type": "View",
20 "url": "https://www.csfd.cz/film/68990-star-trek-hluboky-vesmir-devet/494608-serie-6/prehled/",
21 },
22 {
23 "request_type": "ViewReviews",
24 "url": "https://www.csfd.cz/film/14855-mlady-draci-ninja-2/recenze/",
25 },
26 {
27 "request_type": "ViewReviews",
28 "url": "https://www.csfd.cz/film/68990-star-trek-hluboky-vesmir-devet/494630-zuctovani/recenze/",
29 },
30 {
31 "request_type": "ViewRatings",
32 "url": "https://www.csfd.cz/film/14825-spirit-of-man/prehled//",
33 },
34 {
35 "request_type": "User",
36 "url": "https://www.csfd.cz/uzivatel/195357-verbal/",
37 },
38 {
39 "request_type": "UserReviews",
40 "url": "https://www.csfd.cz/uzivatel/195357-verbal/recenze/",
41 },
42 ],
43 "proxy_settings": { "useApifyProxy": True },
44}
45
46
47run = client.actor("danielherman/csfd-scraper").call(run_input=run_input)
48
49
50print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
51for item in client.dataset(run["defaultDatasetId"]).iterate_items():
52 print(item)
53
54