Skip to content

Commit 6b07b6a

Browse files
committed
Check_website_connectivity/README.md: add a simple README
1 parent 40cb824 commit 6b07b6a

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Check Website Connectivity
2+
3+
This directory contains a simple tool to check connectivity to a number of web sites.
4+
5+
The input file `websites.txt` should contain web site URLs, one per line.
6+
7+
The output file `website_status.csv` contains a two-column report with
8+
the URL of each checked site and its status.
9+
The script simply checks whether the web server returns a 200 status code.
10+
11+
The output file will be overwritten each time you run the tool.
12+
13+
14+
## Prerequisites
15+
16+
This project uses the third-party library
17+
[requests]
18+
as well as the `csv` module from the Python standard library.
19+
20+
21+
## How to run the Script
22+
23+
To run this script, type
24+
25+
```
26+
python check_connectivity.py
27+
```
28+
in the directory where you have checked out these files.
29+
(If you have an IDE which lets you run Python files,
30+
and prefer to use that instead,
31+
make sure you configure it to set the working directory to
32+
the one which contains the input file.)
33+
34+
35+
## Development ideas
36+
37+
The CSV should perhaps contain a date stamp, too.
38+
39+
Perhaps add the `logging` library and optionally print progress information.

0 commit comments

Comments
 (0)