easy database
h
TaylorLiang (634)

I will keep this up as long as I can and plan to update it every week.

I made a database for everybody to use:
How to use:

send a POST-request, with a dict like this: 
		{
			'key'	:	'name',
			'data'	:	{'put data here'}
		}
		and, to access it, send a GET-request, (x = 
                requests.get(database_link).json())
		and use x['the key you want to use'], and you will get the data

@Zavexeon suggested rate limiting of 100 requests a second. There is now rate limiting

Update 0.1:
Because somebody has to spam everything, you can now only send 3000 bytes at a time.

Request 0.1:
What should I add?

Edit: Wow guys, very funny. you spammed the db. Wow. My ears hurt

You are viewing a single comment. View All
AdCharity (921)

I assume data doesn't persist :(
Edit: 699 upvotes !?

TaylorLiang (634)

@AdCharity it does persist. Im using uptime robot in order to keep up up.

AdCharity (921)

@TaylorLiang kind of sad it's not backed up but that's still really cool. also NOOOO MY 699 UPVOTES

ebest (604)

@AdCharity "cycles" does anyone know why upvotes are called that?

AdCharity (921)

@ebest maybe because @amasad likes to bike

Highwayman (637)

@ebest I’ve always thought of it this way: the amount of time a program is running can be measured in cpu cycles, so cycles are how much experience we have with the repl.it community. If you have been using repl.it for a super long time, but you haven’t really posted much, you’ll have an okay amount of cpu cycles, maybe 100 - 200, but if you are super active for the very short time you’ve been here, then you could have those 100-200 cycles. either way it shows that you at least know your way around the place. If you’ve been on here a short time with little to no activity, then you’ll have around 0, maybe 10 cycles, suggesting you essentially have absolutely no idea what’s going on right now or why there are check marks next to people’s posts to you question. Same could happen for someone who just doesn’t post at all: no cycles. Then there are people who have been here forever and are constantly posting who have massive amounts of cycles, 900 to over 1000 cycles, these are obviously the people who really know this site. They are very experienced. None of this is necessarily relates to coding skill. Just experience with repl.it, but still. Pretty cool.

all those ranges are fake, I have no idea what the actual numbers would be, those are just examples.

AdCharity (921)

@Highwayman seems pretty accurate to me. Post it on learn

Highwayman (637)

@AdCharity

Post it on learn

lol yes.

ebest (604)

@Highwayman Mention some other people who might be able to post this on announcements...
You know this place good enough. Are you a philosopher or a coder?

by cycle

Highwayman (637)

@ebest Idk.. it’s just some food for thought, not really official repl.it stuff, right? So I’d be surprised if they did put it up there. That would be funny though lol.

Are you a philosopher or a coder?

yes.

You know this place good enough [...] by cycle

huh, I guess I do need to fix those numbers a bit..

ebest (604)

@Highwayman there was this intresting thing I did a while ago with Amelia Blackwell. I made 4 alternate accounts, cycling? every one of her comments. Nothing important. Don't look at your cycles.

Highwayman (637)

@ebest 🤷‍♂️ Ok, but as a law abiding citizen, I do, because I know it is a true value for me, because I don’t tamper with it, and no one else cares about me enough to go around secretly upping my cycles.

ebest (604)

@Highwayman I read every one. How do you have so many comments? Confusion.

Highwayman (637)

@ebest because I love this place. I live more on repl.it than I do in real life. This is my life. I guess that’s sad, but whatever I love these people. Everyone.

ebest (604)

@Highwayman I used to. Then school happened. And I still do, but homework plagues me every day.

My coding time became less and less, and I slowly disconnected from repl.it. I used to do so much, but now?

Highwayman (637)

@ebest I’d say you’ve saved yourself lol. I’m still in school, but I can’t pull back. I still code at the expense of all my homework and all my grades.

Highwayman (637)

@ebest sorry, can’t answer that.

ebest (604)

@Highwayman ok

oh no my info is contradictory

ebest (604)

@Highwayman in my name

it says I work

wait I do

do I?

Highwayman (637)

@ebest

introducing:

the struggles of the average student coder:

Do I work?

ebest (604)

@Highwayman wait, I don't. I technically unofficially "volunteer" for repl.it egg rolls.

Or do I.

*We can neither confirm nor deny if I work. Do I? **

**existential crisis? (cross thingy here)

(cross thingy here) I broke

ebest (604)

@Highwayman google maps, may or may not still be there.

search up repl.it egg rolls google maps

AdCharity (921)

@ebest @Highwayman stop clogging my notifications and talk on discord or something

AdCharity (921)

@Highwayman Welp now you know where @ebest lives now

ebest (604)

@AdCharity Nearly. I'm [REDACTED] states away. I live in [REDACTED].

If only. I'd go there every day. I learned about this on the replit discord.

TaylorLiang (634)

@ebest mmm, my favorite state, [REDACTED]

ebest (604)

@TaylorLiang Come to [REDACTED]! much fun included.

TaylorLiang (634)

@ebest Were [REDACTED] miles away from [REDACTED]! perfect for vactions

MrEconomical (1417)

@AdCharity @TaylorLiang data actually does persist in programatically saved files in repls now if you have explorer mode enabled

MrEconomical (1417)

@TaylorLiang if it crashes isnt the db variable reset

AdCharity (921)

@MrEconomical doesn't this mean... that there is no need for external db anymore when you can make one on repl? :P

MrEconomical (1417)

@AdCharity yes... I make all my databases on repls

AdCharity (921)

@MrEconomical gimme gimme I was trying earlier to make a db class but idk how to do it and make it synchronous

MrEconomical (1417)

@AdCharity why would you make a sync database

AdCharity (921)

@MrEconomical either synchronized or using promises so I can save stuff and then do action (basically allow me to do .then(function(){}))

AdCharity (921)

@MrEconomical
:/ you helped me with POST and I still use .then()
promises are cleaner, newer, and better and I still don't know how to use them

TaylorLiang (634)

@MrEconomical yes. However, im useing uptime robot to make sure that it stays up

MrEconomical (1417)

@TaylorLiang repls restart every 24 hours, and also it might crash unexpectedly

Highwayman (637)

@MrEconomical sorry to bother you on such an old post, but is this still true?