Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 523 Bytes

README.md

File metadata and controls

9 lines (7 loc) · 523 Bytes

response_code

Uses the Python requests module.

Goes through a list of URLs that you have in a text file, and reads them one-by-one.
Then tries to access the URL and prints out the HTTP response code (https://developer.mozilla.org/en-US/docs/Web/HTTP/Status).
Prints out "failed to connect" if it cannot connect to the URL at all.

This script is useful, for instance, if you have a list of websites and you want to find out which websites are still accessible and which ones are not.