r/Python • • Aug 28 '20

Beginner Showcase This post has

3829 upvotes,

572 downvotes,

297 comments,

3257 score,

and 3 awards!

Edits: 23526 since Friday, August 28, 2020 at 8:30PM EST.

Credit to u/Krukerfluk and Tom Scott!

Code: https://github.com/CalvinMiller190/reddit-post

This post uses the praw module to get the information about the post, then edits the post every second based on the information that it got!

3.4k Upvotes

276 comments sorted by

View all comments

Show parent comments

23

u/13steinj Aug 28 '20

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

-9

u/[deleted] Aug 29 '20

This is why it's not as impressive as YouTube.

Also Tom Scott made it without proper API iirc that video was on broken APIs while reddit has a functional API ;)

7

u/13steinj Aug 29 '20

Wait what does the formula being an estimate have anything to do with its impressiveness? I'm saying it's an estimate because it assumes that the score is the true score, which it could not be because of reddit fuzzing the votes.

0

u/[deleted] Aug 29 '20

[deleted]

-2

u/[deleted] Aug 29 '20

What the fuck did you just fucking say about me, you little bitch? I'll have you know I graduated top of my class in the Navy Seals, and I've been involved in numerous secret raids on Al-Quaeda, and I have over 300 confirmed kills. I am trained in gorilla warfare and I'm the top sniper in the entire US armed forces. You are nothing to me but just another target. I will wipe you the fuck out with precision the likes of which has never been seen before on this Earth, mark my fucking words. You think you can get away with saying that shit to me over the Internet? Think again, fucker. As we speak I am contacting my secret network of spies across the USA and your IP is being traced right now so you better prepare for the storm, maggot. The storm that wipes out the pathetic little thing you call your life. You're fucking dead, kid. I can be anywhere, anytime, and I can kill you in over seven hundred ways, and that's just with my bare hands. Not only am I extensively trained in unarmed combat, but I have access to the entire arsenal of the United States Marine Corps and I will use it to its full extent to wipe your miserable ass off the face of the continent, you little shit. If only you could have known what unholy retribution your little "clever" comment was about to bring down upon you, maybe you would have held your fucking tongue. But you couldn't, you didn't, and now you're paying the price, you goddamn idiot. I will shit fury all over you and you will drown in it. You're fucking dead, kiddo.

0

u/[deleted] Aug 29 '20

[deleted]

-2

u/[deleted] Aug 29 '20

WTF do you expect me to reply to your comment which was not edgy because you wrote it in reply to another edgy comment?

I only said this isn't some super impressive project especially not as impressive as writing a bot for site that does not have API. If you try to write this it's probably less than 10 lines of Python code, some of which is boilerplate PRAW authentication. So it is hardly 5 lines of functional code that someone wrote.

Beginner projects aren't supposed to posted here... didn't we have a whole new sub specifically because people got tired of seeing them?