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.
- 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.
Ensure your system meets the following prerequisites:
- Python 3.5 or higher
- The
requests
library - The
qrcode
library - The
Pillow
library
-
Clone this repository or download the script to your local machine.
-
Install the required packages by running the following command in your terminal or command prompt:
chmod +x ./setup.sh
./setup.sh
- Create a file named
input.txt
and list the URLs you wish to shorten, each on a new line.
touch input.txt
- Execute the script by running the following command in your terminal or command prompt:
python ./main.py
-
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. -
QR codes for each shortened URL will be generated and stored in a folder named
QR_codes
.
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
To ensure a welcoming and respectful environment, we follow a Code of Conduct for all interactions within the LinkSnipper community.
This project is licensed under the terms of the GNU GPLv3. For more details, refer to the LICENSE file.