1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "profileTargets": [
9 "https://www.xiaohongshu.com/user/profile/573b093750c4b4437b50974c",
10 "https://www.xiaohongshu.com/user/profile/584a718c82ec393ca40fd80a",
11 "https://www.xiaohongshu.com/user/profile/5a1d50bce8ac2b78c29aa1ce",
12 "https://www.xiaohongshu.com/user/profile/5aeae33b11be100686f47837",
13 "https://www.xiaohongshu.com/user/profile/5b4272f2e8ac2b4a665480d9",
14 "https://www.xiaohongshu.com/user/profile/5b4814c411be10539b86f9b5",
15 "https://www.xiaohongshu.com/user/profile/5b766c205b95340001ba5c8d",
16 "https://www.xiaohongshu.com/user/profile/5bc5c3df907bea00014fd08b",
17 "https://www.xiaohongshu.com/user/profile/5d7439b40000000001009f54",
18 "https://www.xiaohongshu.com/user/profile/5d8029d90000000001008763",
19 "https://www.xiaohongshu.com/user/profile/5f5f81f6000000000100980b",
20 "https://www.xiaohongshu.com/user/profile/5f94dfd20000000001003907",
21 "https://www.xiaohongshu.com/user/profile/605176df0000000001003633",
22 "https://www.xiaohongshu.com/user/profile/60bcec1d000000000100ab9e",
23 "https://www.xiaohongshu.com/user/profile/611a308e000000000100a023",
24 "https://www.xiaohongshu.com/user/profile/62b9a82e000000001b0278bc",
25 "https://www.xiaohongshu.com/user/profile/63b908260000000027029d05",
26 "https://www.xiaohongshu.com/user/profile/64aad79a000000002a03690a",
27 "https://www.xiaohongshu.com/user/profile/6784ba7f00000000080191fb",
28 ] }
29
30
31run = client.actor("maximedupre/rednote-profile-scraper").call(run_input=run_input)
32
33
34print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
35for item in client.dataset(run["defaultDatasetId"]).iterate_items():
36 print(item)
37
38