---
title: "Discussion on \"4 Line python-based URL shortener\" | Hashnode"
description: "Discussion on \"4 Line python-based URL shortener\". Let's build an URL shortener with just 4 lines of code. I'll keep it as simple as possible.\nInspiration\nI was building a discord BOT that has the feature of sending top news article in a given hour, but the URLs were too long so it was looking bad in..."
url: "https://hashnode.com/posts/4-line-urlshortener/5fa06f6dad30887ef1e15f9c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [4 Line python-based URL shortener](https://publications.theroyakash.com/4-line-urlshortener?utm_source=hashnode&utm_medium=feed)

Let's build an URL shortener with just 4 lines of code. I'll keep it as simple as possible. Inspiration I was building a discord BOT that has the feature of sending top news article in a given hour, but the URLs were too long so it was looking bad in...

Nov 2, 2020 · 1 min read · publications.theroyakash.com  
Read the article

-   [#python3](https://hashnode.com/tag/python3)
-   [#python](https://hashnode.com/tag/python)
-   [#python-beginner](https://hashnode.com/tag/python-beginner)
-   [#python-projects](https://hashnode.com/tag/python-projects)

## Written by

[theroyakash](https://hashnode.com/@theroyakash)

@theroyakash · Chennai, India

  
[View profile](https://hashnode.com/@theroyakash)

Computer Scientist

I go by theroyakash on the internet. I am a computer scientist, with research in high performance algorithms, data structures, distributed systems, and beyond. See my work searching google for theroyakash.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
