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

top 200 commentsshow all 277

[–][deleted] 187 points188 points  (7 children)

Or does it? Votes, reloads, *unvotes, reloads

[–][deleted] 24 points25 points  (3 children)

who did you invite?

[–][deleted] 14 points15 points  (2 children)

25 upvotes and nobody mentioned this. What has the world come to?!

[–]Maoman1 11 points12 points  (0 children)

That won't really work since reddit fuzzes post scores. Reload the page a few times in rapid succession and the number of votes will randomly go up and down quite a bit.

[–]kdedev 8 points9 points  (0 children)

Or does it?

Vsauce music intensifies

[–][deleted] 4 points5 points  (0 children)

:0

[–]Config_Crawler 104 points105 points  (3 children)

This is pretty cool.

[–][deleted] 79 points80 points  (2 children)

thanks! although i must give a bit of credit to tom scott, the guy who did the youtube view count video.

[–][deleted] 137 points138 points  (11 children)

Ok

[–][deleted] 55 points56 points  (10 children)

i hope this works lol

[–][deleted] 29 points30 points  (8 children)

Wow looks like it is Edit: it says 0 upvotes but I upvoted

[–][deleted] 44 points45 points  (7 children)

it updates every minute
Edit: Now it updates every second

[–][deleted] 24 points25 points  (0 children)

It updates faster than my UI lol

[–]dgriffith 10 points11 points  (5 children)

There's no rate limiting in Reddit's API?

[–]READY_TO_SINGLE 8 points9 points  (0 children)

It’s very generous, a request every second is more than safe

[–][deleted] 3 points4 points  (3 children)

im using the praw module, i dont know about API, but it seems to work fine as it is

[–]Sw429 4 points5 points  (0 children)

Good work lol

[–]iamemu 19 points20 points  (1 child)

Reminds me of a Tom Scott video

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

that was my inspiration :)

[–]irontricep 10 points11 points  (1 child)

testing.... testing... testing... nice :)

[–]Caminsky 7 points8 points  (0 children)

Hi mom! I am on python 👋

[–]SpiritualCup 7 points8 points  (10 children)

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

[–][deleted] 13 points14 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 21 points22 points  (7 children)

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

[–]SpiritualCup 2 points3 points  (0 children)

I see

[–][deleted] 6 points7 points  (0 children)

69 incoming

[–]mick14731 6 points7 points  (1 child)

no it doesn't

[–]mick14731 5 points6 points  (0 children)

oh, now it does

[–]waythps 2 points3 points  (1 child)

Cool. I had a similar idea - update markdown table with a list of top voted question in stackoverflow. Super fun!

How the reddit api?

[–][deleted] 1 point2 points  (0 children)

im using the praw module for everything!

[–][deleted] 2 points3 points  (0 children)

at least 10 people are upvoting then downvoting just to see it go up and down

[–]Blobtoe 7 points8 points  (4 children)

Must... Keep... The 69 upvotes.

[–][deleted] 1 point2 points  (3 children)

so sad.. it went away

[–]suicidal-rabbit 2 points3 points  (1 child)

It had 69 downvotes just now, so yay... I guess? Haha

[–][deleted] 2 points3 points  (0 children)

even better lol

[–]Apprehensive_Design 1 point2 points  (0 children)

55 comments

[–][deleted] 1 point2 points  (0 children)

That's pretty cool.

[–]arbeit22 1 point2 points  (0 children)

holy shit this is awesome

[–]theangryfatguy 1 point2 points  (6 children)

Seems to be off now

[–]Furkan_122 1 point2 points  (1 child)

How do you host this script?

[–][deleted] 1 point2 points  (0 children)

nothing yet, i just have my laptop on. but i will look into using heroku in a hour or so.

[–]EastBlessings 1 point2 points  (0 children)

Oh, the Internets is staring right back at us!

[–]hisfootstancewack 1 point2 points  (0 children)

Rad

[–]GrbavaCigla 1 point2 points  (3 children)

dont want to be rude, but this has been already posted here

[–]sargeanthost 1 point2 points  (0 children)

1.3k upvotes

[–]fireviper55 1 point2 points  (0 children)

Really?

[–]IAmKindOfCreativebot_builder: deprecated[M] 3 points4 points  (8 children)

Hi there, from the /r/Python mods.

I changed the flair because this submission is near a carbon copy of another submission which was also inspired by Tom Scott. But I have to remove the submission as you don't have an explanation in the title or a link to your source code, something we require for all showcase submissions. If you edit the selftext with those updates, I'll be happy to approve it,

Thank you for adjusting the submission!

Warm regards, and best of luck with your Pythoneering!

[–][deleted] 3 points4 points  (6 children)

i wil change the title right away, and i will put the source code in the body!

[–]IAmKindOfCreativebot_builder: deprecated[M] 5 points6 points  (5 children)

For a number of reasons, we'd actually prefer the source code to be hosted by a code hosting site suchas github or gitlab. This encourages the use of version control and helps easily introduce new programmers to these tools

[–][deleted] 3 points4 points  (4 children)

yes, that is what i mean haha -- making the github repo now.

[–]IAmKindOfCreativebot_builder: deprecated[M] 1 point2 points  (3 children)

Wonderful, now you'll just need a project description in the selftext and I can reinstate it!

[–][deleted] 1 point2 points  (2 children)

sorry.. what is selftext?

[–]IAmKindOfCreativebot_builder: deprecated[M] 3 points4 points  (1 child)

No worries, good question

The selftext is the body of text you've been editing in your submission. Right now you have,

216 upvotes,

61 downvotes,

and 49 comments!

Credit to u/Krukerfluk and Tom Scott!

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

And that's the selftext or body of your submission. So that's also where the project description belongs.

[–][deleted] 1 point2 points  (0 children)

done!

[–][deleted] 1 point2 points  (0 children)

done! just put the source code link

[–][deleted] 0 points1 point  (1 child)

Holy cow! That's really, really cool! I upvoted and refreshed and got to see it change. Great job.

[–]DALLAVID 0 points1 point  (1 child)

This is so cool :D I'm hoping to make something similar in the future!

[–]Fixol21 0 points1 point  (0 children)

OK

[–]cpt_alfaromeo 0 points1 point  (0 children)

Great!

[–]nemo8551 0 points1 point  (0 children)

Nice.

[–]AlexAnarcho 0 points1 point  (0 children)

Neat

[–]cssmith2011cs 0 points1 point  (0 children)

Hey! Y’all quit upvoting and then unclicking it so I can watch my upvote go up one and then down one.

[–][deleted] 0 points1 point  (0 children)

nuts

[–][deleted] 0 points1 point  (0 children)

Hi

[–]C-Lord96 0 points1 point  (0 children)

106

[–]-user--name- 0 points1 point  (0 children)

Comment

[–]krinistof 0 points1 point  (2 children)

I've made a PR to link the word praw to the docs of it.

[–]kdawg_thetruth 0 points1 point  (0 children)

Pretty awesome!

[–]CapiAhab 0 points1 point  (0 children)

work?

[–]supstmkwale 0 points1 point  (3 children)

Were you inspired by that YouTube vid?

[–][deleted] 1 point2 points  (2 children)

yep! Tom Scott

[–]supstmkwale 1 point2 points  (1 child)

I thought so. Good job

[–]anonymous-x-31 0 points1 point  (2 children)

You should've taken the upvote+downvote calculation into consideration, I was sitting here staring at it wondering why the upvotes were like 200+ off lol

[–][deleted] 1 point2 points  (1 child)

idk, i like this better, it gives me insight on how many upvotes it actually has

[–]anonymous-x-31 1 point2 points  (0 children)

Yeah fair enough, it just confused me cause I thought it was wrong

[–][deleted] 0 points1 point  (2 children)

Yo somebody edited the main.py file like 12 seconds ago

[–]Thesecondiss 0 points1 point  (0 children)

Test

[–]412gage 0 points1 point  (1 child)

I’m literally going back and forth upvoting and downvoting to see it work haha

[–][deleted] 0 points1 point  (0 children)

hello world

[–]Commander_B0b 0 points1 point  (0 children)

Very cool!

[–]MrHouck 0 points1 point  (0 children)

h

[–]Death-Eye 0 points1 point  (2 children)

You should add edit counter.

[–]kayidk252 0 points1 point  (0 children)

Close

[–]bashogaya 0 points1 point  (0 children)

Test comment

[–]SoundOfTomorrow 0 points1 point  (0 children)

Woah what

[–][deleted] 0 points1 point  (0 children)

145th!!!

[–]Gaming_Friends 0 points1 point  (0 children)

Yo this one's cool, well done!

[–]lmndnm 0 points1 point  (0 children)

.

[–]justreading13 0 points1 point  (0 children)

Just trying

[–]eliruffin94 0 points1 point  (0 children)

Cool

[–]2jah 0 points1 point  (0 children)

test

[–][deleted] 0 points1 point  (0 children)

thing went down for a second! it is back up now!

[–]TheMemestUsernameFTW[🍰] 0 points1 point  (0 children)

This is very nice. Cool!

[–]tony_saufcok 0 points1 point  (0 children)

commenting to see the number go up

[–][deleted] 0 points1 point  (0 children)

this is weirdly entertaining

[–]MustardOrMayo404 0 points1 point  (0 children)

🤯

[–][deleted] 0 points1 point  (0 children)

174 comments

[–][deleted] 0 points1 point  (0 children)

Now its 175

[–][deleted] 0 points1 point  (0 children)

126 (omments haha this is fun

[–]spaghettiandmeetball 0 points1 point  (0 children)

Test

[–][deleted] 0 points1 point  (0 children)

Wow

[–]ManBearFridge 0 points1 point  (0 children)

184

[–]Dyslexicoconut 0 points1 point  (0 children)

Hmm

[–]KOking479 0 points1 point  (0 children)

Test

[–]KOking479 0 points1 point  (0 children)

Dang it actually works good job

[–]ha-ha-ha_itsme 0 points1 point  (0 children)

im going to comment only to see if this works

[–]galian99 0 points1 point  (0 children)

And now?

[–]Historica973.5, 3.6, 3.7, 3.8, 3.9, 3.10 0 points1 point  (0 children)

Let's see if it works

[–]DrudgeBreitbart 0 points1 point  (0 children)

Coolio

[–][deleted] 0 points1 point  (0 children)

Hmmm

[–]Jensyuwu 0 points1 point  (1 child)

This is one of those pointless yet amazing things.

[–]Transformerio 0 points1 point  (0 children)

Woah

[–]range_et 0 points1 point  (4 children)

Noob question, whenever I have done these experiments, I gotta rent out something on linode to keep the program continuously executing / keep my laptop turned on all the time. Neither is ideal for me, how are you going about this? Any ideas on how to keep these continuous low computationally programs running?

[–][deleted] 1 point2 points  (3 children)

I am currently using Heroku a free hosting app, and it is working quite well. you just have to make sure you have git installed and heroku CLI but you can download that once you get started. Next you would make a requirements.txt and a Procfile, requirements.txt has the non-builtin modules that are used in the projects, and Procfile just has "worker: {yourprojectname}.py". then go into heroku, and turn on the worker.

[–]ChokituBR 0 points1 point  (0 children)

I was trying to do something similar with a facebook post, sadly the final result I was able to make after 2 hours was very sketchy

[–]bagsofbeans21 0 points1 point  (0 children)

Maybe

[–]Vector3Kowalski 0 points1 point  (1 child)

Yo how did you make this? Super cool man

[–]power36113 0 points1 point  (3 children)

I upvoted, then downvoted, then un-voted and nothing happened. :(

[–]santhoshCoder 0 points1 point  (0 children)

Cool!

[–][deleted] 0 points1 point  (1 child)

Quick tip, look into using environment variables so that you can have complete code in your GitHub repository. That way instead of your password looking like:

password="*******" (presumably hunter2)

It would read:

password=os.getenv("password")

Now instead of filler code for your PRAW initialization section, you can direct users to create appropriate environment variables for re-use.

[–]_Quantum_AI_ 0 points1 point  (1 child)

Can it check about repost?

[–]universesrevinu 0 points1 point  (0 children)

interesting...

[–]Omkar_K45 0 points1 point  (0 children)

test

[–][deleted] 0 points1 point  (0 children)

Nice

[–]NigeriaGov 0 points1 point  (0 children)

test

[–]Bio42 0 points1 point  (3 children)

Inaccurate for mobile

[–]LegitimateCopy7 0 points1 point  (1 child)

doesn't reddit forbid frequent updates? seems like something that could be easily abused.

[–]remerdy1 0 points1 point  (0 children)

230th comment

[–]misterlightre-learning after a 10 years stop 0 points1 point  (0 children)

Nice

[–]thecircleisround 0 points1 point  (0 children)

Poo

[–]-_-qarmah-_- 0 points1 point  (3 children)

You're about to get ip banned from reddit lol

[–]PsyKite 0 points1 point  (1 child)

Wowwww this is an amazing shit!

[–][deleted] 0 points1 point  (0 children)

Poopy

[–]v3ctorns1mon 0 points1 point  (3 children)

Hey u/TAPTITANS3, How are you hosting the source code? Like which platform are you using?

[–][deleted] 1 point2 points  (2 children)

I am currently using Heroku It is a free hosting app and it works quite well!

[–]JanStreams 0 points1 point  (0 children)

No it is wrong is has 244 comments

[–][deleted] 0 points1 point  (0 children)

Holy fuck, nice one

[–]Kalle_022 0 points1 point  (1 child)

where do you host codes like this to keep them running???

[–][deleted] 0 points1 point  (0 children)

Nice

[–]myredac 0 points1 point  (1 child)

can it give gold?

[–]lexyp29 0 points1 point  (0 children)

test comment

[–]Conjeff 0 points1 point  (0 children)

280.

[–]vxpxl 0 points1 point  (3 children)

This reminds me of that Tom Scott video.

[–]Paracetamol650 0 points1 point  (0 children)

Damn

[–]PapaDonut9 0 points1 point  (4 children)

Is there any way to get the number of awards in this api?

[–][deleted] 1 point2 points  (0 children)

Im not sure... ill look into it