Skip to content

A Python-based URL Shortener application featuring a user-friendly interface developed using the Tkinter library. Included in Python Mini Projects List

License

Notifications You must be signed in to change notification settings

storlak/URL-shortener

Repository files navigation

URL SHORTENER README FILE

URL Shortener is a simple program written in Python to shorten long URLs. It features a user-friendly interface built via Tkinter library. URLs are shortened using the pyshorteners library with the tinyurl service. New URL's are valid lifetime and do not expire. It is part of Python Mini Projects List of my GitHub.

Static Badge Static Badge Static Badge Static Badge

Views Counter

CONTENTS

  1. How to Use

    a. Installing

    b. Shorten URL

  2. Error Handling

  3. Versions and Changes

  4. Known Issues

  5. Road Map

How to Use and Set up

Installing

Download main.py, constants, gui_utils and url_shortener. You need Python >3.6 presintalled. Install pyshorteners module:

 > pip install pyshorteners

Run main.py.

Shorten any URL

Copy the URL you want to shorten and paste it into the first field. Click on the "Shorten URL" button. The shortened URL will appear in the second field below. You can copy your new URL to the clipboard using the "Copy" button. The generated URL is permanent and will always be valid.

Error Handling

The URL field cannot be left blank. If left empty, you will receive a warning and the program will not execute. On Linux systems the interface pops up smaller than Windows.

Versions and Changes

🔻Version 2.0 - 26.03.2024

  • Code broken into smaller functions and classes.
  • More Modular: easier to handle.
  • All versions of 1.0 removed.
  • ReadMe file updated.

🔻Version 1.02 - 25.03.2024

  • Top menu added. File, Edit, Tools, Help created.
  • File, Help contents created.
  • Documentation, Licence, About sections added.

🔻Version 1.01: - 24.03.2024

  • Added a Clear Clipboard button and function.
  • ReadMe file created.
  • MIT licence added.

🔻Version 1.0: - 21.03.2024

  • Added Shorten URL and Copy buttons.
  • Created a user interface using Tkinter.

Known Issues

  • Undo & Redo in Edit menu not working.
  • It is possible that copy and shorten URL buttons may not work on different OPs.

Roadmap

  • History menu will be added. It will implement 5 last shortened URLS.
  • Keyboard shortcuts will be added.
  • .exe file will be created.
  • appimage and flatpak will be created.

Contact me!

Gmail Badge Mastodon Follow Twitter Badge

urlshort

About

A Python-based URL Shortener application featuring a user-friendly interface developed using the Tkinter library. Included in Python Mini Projects List

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages