1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "targets": [
9 "http://xhslink.com/o/6oKW7wkJf09",
10 "https://www.xiaohongshu.com/discovery/item/643552d20000000014027d75?xsec_token=AB8lnDuoqkSPI_vrrTYJPAh9_Mixg6YTx-iZao0xQmuus%3D&xsec_source=pc_feed",
11 "https://www.xiaohongshu.com/discovery/item/64605e6b0000000013007da2?xsec_token=ABPvi0oh9iU51HRVhTWlzjIp5GTqa_NcEyWqvYrKjPMAI%3D&xsec_source=pc_feed",
12 "https://www.xiaohongshu.com/discovery/item/63e99375000000001303ea1f?xsec_token=ABYEbTl9m40eVQ0iOsKM2OEWh3StnxMAmrA0xc2MZHjgM%3D&xsec_source=pc_feed",
13 "https://www.xiaohongshu.com/discovery/item/63f0a0fc0000000013035d20?xsec_token=ABXJJ2635KTF205D1uFVKM153-OLxnSz5wuYSIin7ZLeY%3D&xsec_source=pc_feed",
14 ] }
15
16
17run = client.actor("maximedupre/rednote-note-detail-scraper").call(run_input=run_input)
18
19
20print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
21for item in client.dataset(run["defaultDatasetId"]).iterate_items():
22 print(item)
23
24