Share your repls and programming experiences

← Back to all posts
BJNotes - A NoteTaker
BananaJellyfish (207)

think if it more like a notetaker

About

Ok, i think it suits this better to be a note taker
BJSearch is a search engine that you can add results to.
ok, i didn't know this is how db worked, but you can only find words you yourself have entered.

This is my first time using repl.it db, so i might have made a mistake.

lol why is this on trending? this is not what i wanted it to be

Features:

  • search words with prefixes- e.g. you search 'banana' and it comes up with 'banana jellyfish'
  • add your own definitions
  • delete things
  • keeps track of how many definitions there are no, it doesnt

Have fun!

Comments
hotnewtop
BananaJellyfish (207)

@LegendaryWolf it would be, but what i wanted was you to be avble to see other people's entries...which is why, (hopefully) coming soon: BJpedia

JBloves27 (1729)

Pretty cool, but i dont think this is a search-engine, more of a personal dictionary

BananaJellyfish (207)

@JBloves27 yeah, but i thought the replit database would allow for others to add data to the same database. how do i do that?

JBloves27 (1729)

hum, idk that much, but you can go here @BananaJellyfish

BananaJellyfish (207)

@JBloves27 i tried using print(os.getenv("REPLIT_DB_URL")) but it just sends me to a blank page. is that meant to happen?

JBloves27 (1729)

Hmmm, well you need a url first. some kind of db url. @BananaJellyfish

JBloves27 (1729)

hmmm, well, i dont rly use replit db much, so no... @BananaJellyfish

BananaJellyfish (207)

@JBloves27 i'm just going to give up. this project is alright anyway. too bad it doesn't use one database for every different user.

CSharpIsGud (931)

@BananaJellyfish You need to make a separate server that provides an api for making/deleting entries.
But it still wouldn't be a search engine, a search engine is supposed to search for things instead of relying on people to make an entry for everything because that will never happen.

A good example of one is https://repl.it/talk/share/Presenting-The-NEW-Replit-User-Search/59039

[deleted]

@BananaJellyfish hey i could do that im trash a pro at replit db i could help

BananaJellyfish (207)

Can you make it so all the data people enter is stored on the cloud and other people can view it? @snekattack

[deleted]

@BananaJellyfish i am forking the project right now to try to help you

Dunce (50)

@BananaJellyfish You can get the URL of your database like this: print(db)

BananaJellyfish (207)

@Dunce it just sends me to a blank page

LegendaryWolf (721)

WHat do ya think is better -
Alpha Search vs this

Dunce (50)

@BananaJellyfish I think that's supposed to happen, the URL is just storing the data unless I'm missing something, so I don't see why there would be something on the page.

BananaJellyfish (207)

@Dunce i thought it would let me see the things stored in my db. what does it do?

Dunce (50)

@BananaJellyfish Oh I see, I think it just stores the data from your db, if you want to see the things stored in your db I think you can put: print(db.getitems()), although I'm not sure.

frionx (51)

this isn't a search engine.... at all.....

BananaJellyfish (207)

@frionx yeah i know. i wanted people to be able to add entries, but that is going to be complicated

JacobMcPherson1 (196)

hey I was gonna do that

JacobMcPherson1 (196)

also, it works fine for me

BananaJellyfish (207)

@JacobMcPherson1 yeah, it works but you cant search for things other people have inputted, which is what i wanted

JacobMcPherson1 (196)

@BananaJellyfish is that just a thing with the replit db or is it the same for all python databases?

BananaJellyfish (207)

@JacobMcPherson1 i have no idea. if others work though i will try them

Quinnster02 (3)

thats awesome, i added a few random words

BananaJellyfish (207)

@Quinnster02 can you search for them? because apparently its not working for other people, only for me

Quinnster02 (3)

I can see the ones I inputed not sure about others

VadenThakkar (0)

I got this error
Traceback (most recent call last):
File "main.py", line 84, in <module>
menu()
File "main.py", line 17, in menu
value = db['wordamount']
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/replit/database/database.py", line 169, in getitem
raise KeyError(key)
KeyError: 'wordamount'