1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "ids": ["1uvyZBs4IZYRebHIB1747m"],
10 "myids": { "input": [
11 {
12 "id": "1uvyZBs4IZYRebHIB1747m",
13 "process": "get",
14 "category": "track",
15 },
16 {
17 "id": "3jXMLVtLsok8PpCWFj8d5l",
18 "process": "get",
19 "category": "playlist",
20 },
21 ] },
22 "proxy": { "useApifyProxy": True },
23}
24
25
26run = client.actor("canadesk/spotify").call(run_input=run_input)
27
28
29print("๐พ Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
30for item in client.dataset(run["defaultDatasetId"]).iterate_items():
31 print(item)
32
33