Skip to content

LinkSnipper simplifies URL shortening and QR code creation, ideal for efficient link sharing.

License

Notifications You must be signed in to change notification settings

anhkhoakz/LinkSnipper

Repository files navigation

LinkSnipper: URL Shortener and QR Code Generator

LinkSnipper is a Python script designed to simplify the process of generating shortened URLs using a URL shortener API and creating QR codes for those URLs. This tool streamlines the task of managing and sharing links, making it ideal for various applications.

Features

  • Converts a list of URLs from a file into shortened URLs using a URL shortener API.
  • Saves the shortened URLs to a file and displays them in the console.
  • Generates QR codes for each shortened URL, stored in a separate folder.

Requirements

Ensure your system meets the following prerequisites:

  • Python 3.5 or higher
  • The requests library
  • The qrcode library
  • The Pillow library

Installation

  1. Clone this repository or download the script to your local machine.

  2. Install the required packages by running the following command in your terminal or command prompt:

chmod +x ./setup.sh
./setup.sh

Usage

  1. Create a file named input.txt and list the URLs you wish to shorten, each on a new line.
touch input.txt
  1. Execute the script by running the following command in your terminal or command prompt:
python ./main.py
  1. The script will process the URLs, generate shortened versions, and save them to a file named shorted_urls.txt. The shortened URLs will also be displayed in the console.

  2. QR codes for each shortened URL will be generated and stored in a folder named QR_codes.

Contributing

We welcome your contributions! If you encounter issues or have suggestions for improvements, please feel free to open an issue or submit a pull request on our GitHub repository. Please follow Contributing direction

Code of Conduct

To ensure a welcoming and respectful environment, we follow a Code of Conduct for all interactions within the LinkSnipper community.

License

This project is licensed under the terms of the GNU GPLv3. For more details, refer to the LICENSE file.

Sponsors

1Password 1Password 1Password

About

LinkSnipper simplifies URL shortening and QR code creation, ideal for efficient link sharing.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published