Skip to content

hackgwinnett/url-shortener

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

URL Shortener

Flask TinyURL clone.

# API requests
import requests

address = "<your server IP here>"
payload = {
    "shortened": "github",
    "url": "https://www.github.com"
}

r = requests.post(address + "/create", json=payload)
print(r.text)
# redirects
http://address/github -> https://www.github.com

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%