Skip to content

Url Status Checker - This is a tool that will check the status code of a list of URLs. Useful if you're working with a lot of redirects made "by hand".

License

Notifications You must be signed in to change notification settings

simone-di-paolo/url-status-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


SIMPLE REDIRECT TOOL GENERATOR FOR APACHE

What is this script for?

This is a simple script in Python that will check a series of urls from the first column of an .xlsx file, get the history from the response (redirects etc...) and will tell you, in a new .xlsx file, if the redirect is present (or not), if the page goes in 404 and if the redirected url is correct (based on the second column of the excel file that contains the list of the "final" urls).

SETTING UP VARIABLES

Open the script with an editor like Notepad++ and edit the following variables as you prefer:

  • Start from row # specify the first row of your .xlsx/.xls file that starts with a URL
  • Sheet number # the index of the excel sheet you want to process, if "Selected sheet only" is unchecked it will do them all starting from this index
  • Selected sheet only # if for any reason you need to do one file sheet at a time, flag this checkbox

INSTALLATION GUIDE

To make this script work you need to install Python, xlrd and xlwt libraries.

You can download the latest version of Python from those links for Windows, Linux/UNIX, MacOS.

Move into project folder with git bash or cmd and launch this command to easy install all the required libraries:

pip install -r requirements.txt --user

Just in case you are using .xls (and not .xlsx) files, then, you'll need to install the latest version manually:

pip install --upgrade xlrd

Once done, make sure you're in the correct folder with cmd/terminal and launch (N.B. use your python version into the next command):

python gui.py

Now, setup all needed inside the brand new GUI and start the script.

After that, you will find your new results.xslx file into your folder destination (specified inside the GUI).

NB: an .exe of the script is available but your OS will probably block it. The best way to run the script is buy command line as described above but if you want, you can try to whitelist the .exe and run it in the easiest way possible.

UPDATES

03-06-2023 - Version 0.1.3

Features:

  • Added the requirements.txt file in order to easily install all the required packages
  • Added the .exe of the script to the release

02-06-2023 - Version 0.1

Features:

  • Added a first version of a GUI

About

Url Status Checker - This is a tool that will check the status code of a list of URLs. Useful if you're working with a lot of redirects made "by hand".

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages