URL Cleaner is a simple Python application for cleaning and formatting URLs. The application allows to input a list of URLs and provides options to adjust the output format, such as adding the http(s)://
scheme and the www.
prefix.
- Clone the Repository:
git clone https://github.com/your-username/url-cleaner.git
cd url-cleaner
sudo chmod +x urlcleaner.py
- Install Dependencies:
Ensure you have Python installed. The code uses the Tkinter library, which is generally included with Python. If not, you can install it with:
sudo apt-get install python3-tk
python3 urlcleaner.py
Enter URLs: Type or paste a list of URLs into the upper text area.
Select Options:
Check the checkboxes to add http(s)://
and/or www
.
Extract Results: Click the Extract button to process the URLs and display the results in the lower area.
Clear: Use the Clear button to remove the input and result text.
Copy Results: Use the Copy button to copy the results to the clipboard.
The output will include only the domain name, excluding any scheme (e.g., http
, https
) or www
prefix.
Adds http
to the result. If the input URL includes https
, it will be maintained as https
.
Adds www
to the output.
Combines both options by adding http
and www
to the result.