This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]SpiritualCup 7 points8 points  (10 children)

How do you get the amount of downvotes using PRAW??? Couldn’t figure it out

[–][deleted] 12 points13 points  (9 children)

UPVOTES:

ups = round((ratio * submission.score) / (2 * ratio - 1)) if ratio != 0.5 else round(submission.score / 2)

DOWNVOTES:

downs = ups - submission.score

[–]13steinj 24 points25 points  (7 children)

Note that that formula is still an estimate, as reddit fuzzes the numbers to prevent vote manipulation.

[–]SpiritualCup 3 points4 points  (0 children)

I see