1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "profile",
10 "searchQuery": "bluesky",
11 "searchSort": "latest",
12 "searchTags": [],
13 "language": "",
14 "authorFeedFilter": "posts_with_replies",
15 "includePins": False,
16 "includeParents": False,
17 "threadDepth": 6,
18 "maxRepliesPerPost": 100,
19 "actor": "bsky.app",
20 "actors": [],
21 "postUris": [],
22 "postUrls": [],
23 "listUris": [],
24 "starterPackUris": [],
25 "feedPreset": "whats-hot",
26 "feedUris": [],
27 "discoveryType": "trendingTopics",
28 "excludeReplies": False,
29 "excludeReposts": False,
30 "mediaOnly": False,
31 "excludeLabeled": False,
32 "respectNoUnauthenticated": True,
33 "verifiedOnly": False,
34 "includeListMetadata": False,
35 "includeStarterPackMembers": True,
36 "hydrateAuthors": False,
37 "maxItems": 3,
38}
39
40
41run = client.actor("nimbryxo-studio/bluesky-posts-profiles-feeds-and-threads-scraper").call(run_input=run_input)
42
43
44print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
45for item in client.dataset(run.default_dataset_id).iterate_items():
46 print(item)
47
48