1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "auto",
10 "scrapeDepth": "detail",
11 "startUrls": [{ "url": "https://www.quora.com/What-is-the-meaning-of-life" }],
12 "outputFormat": "normalized",
13 "dedupeMode": "canonical",
14 "onlyNewItems": False,
15 "includeUnchanged": True,
16 "includeFieldEvidence": True,
17 "includeUnresolvedEdges": True,
18 "includeProfileEdges": False,
19 "includeQuestionFollowerEdges": False,
20 "includeAnswerUpvoterEdges": False,
21 "includeSensitiveRelationshipData": False,
22 "includeTargetMetadata": False,
23 "includeRelationshipCounts": False,
24 "includeSpaceRoleEdges": False,
25 "includeSpaceContentEdges": True,
26 "maxQuestions": 10,
27 "maxAnswersPerQuestion": 5,
28 "includeQuestion": True,
29 "includeAuthor": True,
30 "includeAuthorSnapshot": False,
31 "includeTopics": True,
32 "includeSpaces": False,
33 "includeComments": False,
34 "includeEngagementBreakdown": True,
35 "includeRelatedContent": False,
36 "topCommentsOnly": False,
37 "includeReplyGraph": False,
38 "includeMedia": False,
39 "includeFeedText": False,
40 "includeOutboundLinks": False,
41 "includeEntityGraph": False,
42 "maxCommentsPerAnswer": 0,
43 "maxCommentDepth": 20,
44 "maxGraphEdges": 1000,
45 "includeRawEvidence": False,
46 "includeHtml": False,
47 "redactSensitiveQueryParams": True,
48 "maxItemsPerSource": 0,
49 "searchDiscovery": "relatedOnly",
50 "maxRelatedQuestions": 0,
51 "searchResultsPerQuery": 0,
52 "maxAnswerPages": 0,
53 "maxTopicFeedPages": 0,
54 "maxSpaceFeedBundles": 1,
55 "includeCommentReplies": False,
56 "includeQuoraPlusPreview": True,
57 "includeProfileStats": True,
58 "includeTopicStats": True,
59 "includeSpaceStats": True,
60 "includePostStats": True,
61 "includeAnswerStats": True,
62 "includeTopicFeed": False,
63 "includeQuestionAudit": False,
64 "includeProfileHistory": False,
65 "maxProfileHistoryPages": 0,
66 "maxRelationshipPages": 0,
67}
68
69
70run = client.actor("nimbryxo-studio/quora-question-answer-and-relationship-dataset").call(run_input=run_input)
71
72
73print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
74for item in client.dataset(run.default_dataset_id).iterate_items():
75 print(item)
76
77