Created
May 16, 2022 00:13
-
-
Save mike-pete/28c0ca91c79b2c74f6574d5fc294b7c5 to your computer and use it in GitHub Desktop.
get a list of all reddit users that commented on a post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let commenters = document.querySelectorAll('[data-testid="comment_author_link"]') | |
let commenterData = {} | |
commenters.forEach(commenter => commenterData[commenter.text] = commenter.href) | |
console.log(commenterData) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment