1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "forumLatest",
10 "forumId": "88",
11 "forumIds": [
12 "48",
13 "853",
14 "311",
15 ],
16 "topicIds": ["1288127"],
17 "topicUrls": ["https://www.biggerpockets.com/forums/311/topics/1288127-thinking-about-this-property"],
18 "usernames": [
19 "sparkrental",
20 "abelc2",
21 ],
22 "maxCommentsPerTopic": 50,
23 "maxItems": 50,
24 "maxPagesPerForum": 3,
25}
26
27
28run = client.actor("parsebird/bigger-pockets-scraper").call(run_input=run_input)
29
30
31print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
32for item in client.dataset(run.default_dataset_id).iterate_items():
33 print(item)
34
35