1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "channel": [
10 "https://www.youtube.com/@adidas/videos",
11 "zara",
12 ],
13 "numberOfResults": 2,
14 "localeHl": "en",
15 "localeGl": "US",
16 "acceptLanguage": "en-US,en;q=0.9",
17 "maxChannelConcurrency": 2,
18 "maxVideoDetailConcurrency": 2,
19 "checkpointEveryVideos": 10,
20 "interVideoDelayMs": 0,
21}
22
23
24run = client.actor("newbs/youtube-channel").call(run_input=run_input)
25
26
27print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
28for item in client.dataset(run["defaultDatasetId"]).iterate_items():
29 print(item)
30
31