Share your repls and programming experiences

← Back to all posts
BJNotes - A NoteTaker
BananaJellyfish

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!

Voters
SelenaYang1
LegendaryWolf
johnnyfrancis
Muhammad_SJC
JacobMcPherson1
pythonorguser
VadenThakkar
BananaJellyfish
Comments
hotnewtop
LegendaryWolf

OK this is better than mine

BananaJellyfish

@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

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

BananaJellyfish

@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

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

BananaJellyfish

@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

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

BananaJellyfish

@JBloves27 do you know how to get it?

JBloves27

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

BananaJellyfish

@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.

JBloves27
CSharpIsGud

@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

BananaJellyfish
[deleted]

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

BananaJellyfish

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

BananaJellyfish
Dunce

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

BananaJellyfish

@Dunce thanks

BananaJellyfish

@Dunce it just sends me to a blank page

LegendaryWolf

WHat do ya think is better -
Alpha Search vs this

Dunce

@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

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

Dunce

@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.

BananaJellyfish

@Dunce thanks

Dunce
[deleted]

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

BananaJellyfish

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

JacobMcPherson1

hey I was gonna do that

JacobMcPherson1

also, it works fine for me

BananaJellyfish

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

JacobMcPherson1

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

BananaJellyfish

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

Quinnster02

thats awesome, i added a few random words

BananaJellyfish

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

Quinnster02

@BananaJellyfish yes they work for me

Quinnster02

I can see the ones I inputed not sure about others

BananaJellyfish

@Quinnster02 try 'banana'

VadenThakkar

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'

BananaJellyfish

What did you enter? @VadenThakkar

VadenThakkar

@BananaJellyfish Nothing, it just happened when i ran it

BananaJellyfish
BananaJellyfish

@VadenThakkar it works now, but wont count words