Skip to content

andiardii/simple-url-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple URL Checker

This program is based on my need to handle 8k URLs, which cannot be checked individually. I have automated a script to change my permalink URLs if errors occur. Sometimes, the automation script fails to work correctly and does not successfully change the permalink URLs. Therefore, I built this program to check it.

It has two main features:

  1. Checking if URLs redirect to the homepage or not, error results logged in 'redirected_urls.txt'.
  2. Checking if URLs can be accessed or return a 404 error, error results logged in 'not_accessible_urls.txt'.

All error results will be logged in both notepad files and displayed in the command prompt. Successful results will only be displayed in the command prompt.

Installation

Step 1: Clone this repository.

git clone https://github.com/andiardii/simple-url-checker.git

Step 2: Install module requests (if not have).

pip install requests

Step 3: Input all of your urls that you want to check in urls.txt file

Step 4: Run command

python check-url-homepage.py

or

python check-url-404.py

If you need further adjustments or additional information, feel free to ask!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages