Consider the following Reddit Post: https://www.reddit.com/r/datascience/comments/xlvr0l/who_is_applying_to_all_these_data_scientist_jobs/
Part 1: Here is an example of comments that were left on this post - Using the Reddit API ("Pushshift"), for a given comment on this post (e.g. a comment left by "Playful_Message_7944"), I would like to retrieve all comments in the conversation, i.e. ALL previous comments in the conversation BEFORE "Playful_Message_7944" replied, and ALL future comments in the conversation AFTER "Playful_Message_7944" replied.
Part 2:
Based on the document for the API (https://github.com/pushshift/api) know that the following query can be used to find out this comment left by "Playful_Message_7944": https://api.pushshift.io/reddit/comment/search?limit=250&q=*&link_id=xlvr0l
Then, I can identify the exact link (using ctrl+f and searching for the comment text): https://reddit.com/r/datascience/comments/xlvr0l/who_is_applying_to_all_these_data_scientist_jobs/ipln78n/
Part 3: We can now see the JSON information for this comment:
{
"all_awardings": [],
"archived": false,
"associated_award": null,
"author": "Playful_Message_7944",
"author_flair_background_color": null,
"author_flair_css_class": null,
"author_flair_richtext": [],
"author_flair_template_id": null,
"author_flair_text": null,
"author_flair_text_color": null,
"author_flair_type": "text",
"author_fullname": "t2_eu0saeom",
"author_patreon_flair": false,
"author_premium": false,
"body": "The 6 month certs people are LITERALLY boot campers. The boot camps pay to license the name of the schools so they can provide these \u201ccertificates\u201d",
"body_sha1": "6a6cf7368516e1583d9a6e4978b3b002c77e37bb",
"can_gild": true,
"collapsed": false,
"collapsed_because_crowd_control": null,
"collapsed_reason": null,
"collapsed_reason_code": null,
"comment_type": null,
"controversiality": 0,
"created_utc": 1663943705,
"distinguished": null,
"gilded": 0,
"gildings": {},
"id": "ipln78n",
"is_submitter": false,
"link_id": "t3_xlvr0l",
"locked": false,
"no_follow": true,
"parent_id": "t1_ipljm3d",
"permalink": "/r/datascience/comments/xlvr0l/who_is_applying_to_all_these_data_scientist_jobs/ipln78n/",
"retrieved_utc": 1663943724,
"score": 1,
"score_hidden": true,
"send_replies": true,
"stickied": false,
"subreddit": "datascience",
"subreddit_id": "t5_2sptq",
"subreddit_name_prefixed": "r/datascience",
"subreddit_type": "public",
"top_awarded_type": null,
"total_awards_received": 0,
"treatment_tags": [],
"unrepliable_reason": null
},
Part 4: So far, I am able to partially retrieve comments that came after this "Playful_Message_7944" with the following code: https://api.pushshift.io/reddit/search/comment/?parent_id=ipln78n
QUESTION: But is there a way to retrieve all comments in the specific conversation that come before and after "Playful_Message_7944"'s comment?
To me this seems like a "Node Search" - for a specific comment, I want to retrieve all comments that are connected to this comment, all comments that are connected to comments that are connected to the original comment, etc.
Thank you!
