Redirector is a simple link redirecting service. Built using Flask and SQLAlchemy, it aims to provide a way to shorten and redirect links but usually fails at the former.
Since I'm awful at making pretty interfaces, creation of redirection links can currently only take place using POST requests.
Use the following Python script to make a POST request and create your link.
import sys
import requests
params = {
"source_url" = sys.argv[1],
"alias_url" = sys.argv[2]
}
response = requests.post("https://goto-link.herokuapp.com/register", data=params)
print(str(response.content))
Execute the above script using
python3 source_url alias_url
Example, use
python3 https://github.com/ git
You can access an alias link using goto-link/alias_name
- Open Source
Yup, that's the only advantage I can think of.
- The alias links may not be always shorter because of the size of the link prefix
- Creation of alias links is tedious (for now)
It is not as bad as it sounds though.
A pretty interface to create alias links would be a good starting point.
Honestly, even I do not know why this exists.