#๐ how do i make a link shortener with python
27 messages ยท Page 1 of 1 (latest)
@opal light
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
dumbest & most straightforward way would be create a form in frontend, where user will enter his link, and a DB with links table where one column will be initial link entered by user and another one will be shortened url you returned to user.
About authentication & authorization you can read in Internet, there's more than enough stuff
thanks, my another question is how bit.ly does it
or big companies
like what's different
I'm not entirely sure how they do it but basically when you visit a shortened URL it looks up in a database where that Shortened link goes, then it redirects them to it
But its all a database
hm
so that's the basic science behind link shorteneres
Databases aren't science
mhm, with relational algebra and all these NFs it is science tho
You just need SQLite
I haven't used algebra yet in my database...
unrelated but can i use cryptography in this or would that be hard
like say i have a url:
google.com
which gets shortened as 3 random letters and digits
so that makes it faster
Feel free to steal ideas from https://teensy.info
You would have very limited short links
It wouldn't make a very big difference
thanks lol
hm thanks
database
that's it
!close
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.