Mini_Python_Projects icon indicating copy to clipboard operation
Mini_Python_Projects copied to clipboard

Add a simple URL shortener

Open CodeDrinks270 opened this issue 3 months ago • 5 comments

Description:

Implement a basic Python script that shortens long URLs using the pyshorteners library (TinyURL service). This feature allows users to input a URL and receive a shortened version that can be easily shared or used elsewhere.

Goals / Acceptance Criteria:

  • Install and use the pyshorteners library.
  • Accept user input (a long URL) via console.
  • Generate and print the shortened URL using TinyURL.
  • Handle invalid URLs gracefully (optional).
  • Include basic documentation or inline comments explaining the code.

CodeDrinks270 avatar Oct 13 '25 16:10 CodeDrinks270