AEAMcNett / Check_URL_Status

The following script tests the HTTP status of all the URLs in a file.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Summary

check_urls.py tests the HTTP status of all the URLs in a file.

Requirements

Dependencies

Command line inputs

-i File containing URLs to test Required

-o Output file otherwise uses stdout

-h Prints command line arguments help

Sample runs

  • Test the status of all URLs in the specified file and output results to standard output (must be run in same directory as check_urls.py)
python check_urls.py -i C:/Temp/urls_test.txt
  • Test the status of all URLs in the specified file and save results to a specified log file (must be run in same directory as check_urls.py)
python check_urls.py -i C:/Temp/urls_test.txt -o C:/Temp/log.txt
  • Run the test suite (must be run in same directory as check_urls.py and test_check_urls.py)
pytest

About

The following script tests the HTTP status of all the URLs in a file.


Languages

Language:Python 100.0%