On Reddit, people can post comments that get upvotes and downvotes. This information is not readily accessible on the page itself, so it seems that something like an API is used to gather this information.
I found this script that does this, but am unable to determine where in the script it pulls this information from. Could someone point me to the relevant line where the script gets the data from?
Each comment has
dataattributes:Reddit’s HTML structure is really hard to follow so figure out a way to get from the comment ID to the element which contains this stuff.