1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "keyword": "https://www.tripadvisor.com/Airline_Review-d8729069-Reviews-Emirates",
10 "text": "",
11 "lang": ["en"],
12 "rating": [
13 "1",
14 "2",
15 "3",
16 "4",
17 "5",
18 ],
19 "cabin": [
20 "BUSINESS",
21 "ECONOMY",
22 "FIRST",
23 "PREMIUM_ECONOMY",
24 ],
25 "segment": [
26 "Business",
27 "Couples",
28 "Family",
29 "Friends",
30 "Solo",
31 ],
32 "bestmonths": [
33 "1",
34 "10",
35 "11",
36 "12",
37 "2",
38 "3",
39 "4",
40 "5",
41 "6",
42 "7",
43 "8",
44 "9",
45 ],
46 "proxy": {
47 "useApifyProxy": True,
48 "apifyProxyGroups": ["RESIDENTIAL"],
49 },
50}
51
52
53run = client.actor("canadesk/tripadvisor-reviews").call(run_input=run_input)
54
55
56print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
57for item in client.dataset(run["defaultDatasetId"]).iterate_items():
58 print(item)
59
60