1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "searchQueries": ["The Odyssey"],
10 "lists": ["movie_popular"],
11 "startUrls": [{ "url": "https://www.themoviedb.org/movie" }],
12 "genres": [
13 "Action",
14 "Adventure",
15 ],
16 "maxItems": 10,
17 "proxyConfiguration": {
18 "useApifyProxy": True,
19 "apifyProxyGroups": ["RESIDENTIAL"],
20 },
21}
22
23
24run = client.actor("datascrapers/themoviedb-scraper").call(run_input=run_input)
25
26
27print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
28for item in client.dataset(run.default_dataset_id).iterate_items():
29 print(item)
30
31