Skip to content

This Python script serves as a convenient URL shortening tool, leveraging the pyshorteners library to generate compact URLs using the TinyURL service. With an easy setup, the script allows users to quickly shorten lengthy URLs, making them more manageable and shareable.

License

Notifications You must be signed in to change notification settings

Firesoulcoder/url-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

URL Shortener Script

This Python script is a simple URL shortener that utilizes the pyshorteners library to generate shortened URLs using the TinyURL service.

Requirements

  • Python 3.x
  • pyshorteners library

Installation

Install the required library using the following command:

Usage

Run the script:

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

The script will provide you with the shortened URL.

Note

You can customize the script to use other URL shortening services supported by pyshorteners by modifying the s.tinyurl.short() line in the script.

Feel free to explore and modify the script to suit your needs.

command

pip install pyshorteners

Happy shortening!


About

This Python script serves as a convenient URL shortening tool, leveraging the pyshorteners library to generate compact URLs using the TinyURL service. With an easy setup, the script allows users to quickly shorten lengthy URLs, making them more manageable and shareable.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages