1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "trackUrls": [
10 "https://open.spotify.com/track/1dGr1c8CrMLDpV6mPbImSI",
11 "https://open.spotify.com/track/7qiZfU4dY1lWllzX7mPBI3",
12 "https://open.spotify.com/track/0tgVpDi06FyKpA1z0VMD4v",
13 "https://open.spotify.com/track/6habFhsOp2NvshLv26DqMb",
14 "https://open.spotify.com/track/1rfofaqEpACxVEHIZBJe6W",
15 "https://open.spotify.com/track/7BKLCZ1jbUBVqRi2FVlTVw",
16 "https://open.spotify.com/track/3ZCTVFBt2Brf31RLEnCkWJ",
17 "https://open.spotify.com/track/4xqrdfXkTW4T0RauPLv3WA",
18 "https://open.spotify.com/track/6DCZcSspjsKoFjzjrWoCdn",
19 "https://open.spotify.com/track/2XU0oxnq2qxCpomAAuJY8K",
20 "https://open.spotify.com/track/5wANPM4fQCJwkGd4rN57mH",
21 "https://open.spotify.com/track/0u2P5u6lvoDfwTYjAADbn4",
22 "https://open.spotify.com/track/2QjOHCTQ1Jl3zawyYOpxh6",
23 ],
24 "keywords": [],
25}
26
27
28run = client.actor("maximedupre/spotify-downloader").call(run_input=run_input)
29
30
31print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
32for item in client.dataset(run["defaultDatasetId"]).iterate_items():
33 print(item)
34
35