Brief Description: A Python script that verifies the return code of URLs.
This is a script that will run a list or a single URL and will tell you the return code.
We can use this tool in multiple ways. To begin, if the user types in the code to run the program without any arguments, they will be displayed the default help message. Typing -h/--help
will accomplish the same thing.
If we want to check the version we can do so by typing -v/--version
to check the version.
Next, if we want to just verify a single url, we can do this by using the -u/--url
argument (followed by a string with the format http:// or https:// ):
If we write the -u/--url
argument without a valid link, it will give us a warning.
Now, as for the default main core of the program, the idea was to build a tool that can analyze a full list of URLs. In order to perform this, we need to enter a valid html file after invoking the program.
As we can see, several things are implemented here:
- Color for different request code ranges
- Error handling for Connections that are refused
- If a connection takes longer than 5s to connect, it will be timed out - because no one wants to wait forever...
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
You will need to install python3
You may or may not need to set up a virtual environment depending on your OS. If you want to set up a Virtual Environment, you will have to type the following:
python3 -m venv .venv
The above line should only be ran the first time you set up your folder
Once it has been created, you will want to run the source command:
source [location_of_your_folder/.venv/bin/activate]
You will know if it worked or not if you see (.venv)
infront of where you would input your command line operations. (Just see the pictures above, it should look similar.)
After that, you'll want to install the libraries
pip3 install -r requirements.txt
Make sure to use latest version of UTF encoding to get the proper emojis for the script responses.
To run this program, we will need to use a terminal that supports Bash Scripting and Python. This application is best used on a Linux Terminal.
Open it in a terminal and call it via the command line, see the detailed description for further instruction.
- Requests - Used for getting the request codes.
- Beautiful Soup - Used for parsing HTML in Python
- lxml - Used for processing HTML and XML files in Python, used in conjunction with Beautiful Soup
- Argparse - Used for parsing arguments
- Sys - Used for calling objects from the system
- Colorama - Used for having a cross-platform coloring for the terminal
Please read CONTRIBUTING.md for details on the code of conduct, and the process for submitting pull requests.
Version 0.4 - Stable Release. Features listed in the Detailed Description.
- Andre Bhaseen - Initial work - abhaseen
- SparrowOchon - Feature - SparrowOchon
This project is licensed under the MIT License - see the LICENSE.md file for details