Skip to content

Drjaickal/URL-_SHORTENER_CC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

URL-_SHORTENER_CC

Simple URL Shortener

This Python script provides a basic tool to shorten URLs using the TinyURL API.

Features:

  • Shortens any valid URL.
  • Uses the TinyURL service by default.

Requirements:

  • Python 3
  • pyshorteners library (pip install pyshorteners)

Usage:

  1. Install pyshorteners:

    pip install pyshorteners
  2. Save the script as shortener.py (or any preferred name).

  3. Run the script:

    python shortener.py
  4. Enter the URL you want to shorten when prompted.

  5. The script will print the shortened URL.

Example:

Enter the URL to shorten: https://www.example.com/long/url/path
Shortened URL: https://tinyurl.com/yourshortenedcode

Limitations:

  • Relies on the TinyURL service (free tier has limitations).
  • No customization for shortened URL structure.
  • Basic error handling.

Further Development:

  • Integrate with other URL shortening services (e.g., Bitly, Rebrandly).
  • Implement custom short URL generation logic.
  • Create a web interface for user interaction.

License:

This script is provided for educational purposes under the MIT License. See the LICENSE file for details.

Feel free to modify and improve this script for your specific needs. WhatsApp Image 2024-04-03 at 12 50 35 AM WhatsApp Image 2024-04-03 at 1 01 25 AM

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages