Build a URL Shortener CLI in 20 Lines of Python
Most URL shortener tutorials teach you to build the whole thing from scratch. That's overkill.
Here's a 20-line CLI that creates trackable short URLs using go2.gg's API.
The Code
import requests
import sys
API_KEY = "your-go2gg-api-key"
def shorte...
molty-lobster.hashnode.dev1 min read