TinyUrl CLI with Python - Tutorial

Опубликовано: 08 Май 2026
на канале: NoobScience
138
5

TinyUrl CLI with Python - Tutorial

A Simple Command Line Interface/CLI for https://tinyurl.com
TinyUrl is a very simple and an efficent url shortener, although I like a CLI, hence, this video
We will be using python and requests module to get the html page of the shortened url with the tinyurl api.
This project is registered under the MIT License https://newtoallofthis123.github.io/l...

TinyUrl Base Url: https://tinyurl.com/api-create.php?url={url}
Compilation: Nuitka https://nuitka.net/, Pyinstaller https://www.pyinstaller.org/
Nuitka: python -m nuitka --onefile --windows-icon-from-ico="icon.ico" --windows-company-name="NoobScience" --windows-product-name="TinyUrl" --windows-file-version=0.1 --windows-product-version=0.1 --windows-file-description="Tinyurl Shortener" --python-arch="x86" url_shortner.py
Pyinstaller: pyinstaller -w - i "icon.ico" -n "NoobNote" url_shortener.py

Code hosted on GitHub

Code for the Project: https://tinyurl.com/yja4hkaz
Code with Argument Parser: https://tinyurl.com/yh7m72vc
Code for the GUI: https://tinyurl.com/ygefc67s

Author: NoobScience
Website: https://newtoallfothis123.github.io/A...
Github: https://github.com/newtoallofthis123

Some of My Projects:
NoobNote - A Simple Alternative to Notepad : https://newtoallfothis123.github.io/A...
Leaf Qr - A Simple Qr Code Generator and Manager : https://newtoallfothis123.github.io/leaf
Unleaky - A Simple CLI Passowrd Manager : https://newtoallfothis123.github.io/u...
ToPy - A Simple CLI ToDo Manager : https://newtoallfothis123.github.io/topy

Software Used:
Graviton Editor - Code Editor : https://graviton.netlify.app/
OBS - Recording : https://obsproject.com/
Shotcut - Video Editor : https://www.shotcut.org/
Notepad ++ - Scripting : https://notepad-plus-plus.org/
NoobNote - Scripting : https://newtoallofthis123.github.io/N...
Github Gists - Code Hosting : https://gist.github.com/newtoallofthi...
ShareX - Screenshot and Recording : https://getsharex.com/
GIMP - Template Design : https://www.gimp.org/
SublimeText - Subtitle Editing Tool : https://www.sublimetext.com/
Powershell - Shell : https://docs.microsoft.com/en-us/powe...
Python -Code Language : https://python.org

Requirements:
Python https://python.org
Requests https://docs.python-requests.org/en/m...
OS https://docs.python.org/3/library/os....
Pyperclip https://pypi.org/project/pyperclip3/

This project is not a replacement for tinyurl. It is in fact powered by tinyurl. Moreover, it is in no way attributed to the official tinyurl team whatsoever.
This is unofficial and I am not responsible for how you use it.

Happy Coding

Songs for Video

Track: Culture Code - Make Me Move (feat. Karra)
Music provided by NoCopyrightSounds.
Watch:    • Culture Code - Make Me Move (feat. Karra) ...  
Free Download / Stream: http://ncs.io/makememove

Track: Diamond Eyes - Everything [NCS Release]
Music provided by NoCopyrightSounds.
Watch:    • Diamond Eyes - Everything | Melodic Dubste...  
Free Download / Stream: http://ncs.io/EverythingYO

Track: Diviners & Azertion - Feelings [NCS Release]
Music provided by NoCopyrightSounds.
Watch:    • Diviners & Azertion - Feelings | Progressi...  
Free Download / Stream: http://ncs.io/DAFeelings

Music is of NoCopyRight https://ncs.io/usage-policy

Video is registered under the MIT License https://newtoallofthis123.github.io/l...