Understanding the Project Details
00:00 Project Details. In this course, you’ll build an application that checks if one or more websites are online at a given moment. The app will take a list of target URLs at the command line and check them for connectivity, either synchronously or asynchronously. On-screen, you can see the application in action.
00:22 The site connectivity checker can take one or more URLs at the command line. It then creates an internal list of targets and checks them for connectivity by issuing HTTP requests and processing the corresponding responses.
--asynchronous option, you can modify this behavior and make the app run the connectivity checks concurrently. To do this, you’ll take advantage of Python’s asynchronous features and the
aiohttp third-party library.
This mode can make your website connectivity checker faster and more efficient, especially when you have a long list of URLs to check internally. Your application will use the standard library
http.client module to create a connection to the target website.
01:49 Once you have a connection, then you can make an HTTP request to the website, which will hopefully react with an appropriate response. If the request is successful, then you’ll know that the site is online.
The project that you’ll build in this course will require familiarity with general Python programming. Additionally, basic knowledge of the following topics will be helpful in your understanding of what’s happening in the code that you’ll see: handling exceptions in Python, working with files, the
with statement and the
pathlib module, handling HTTP requests with standard-library or third-party tools, creating CLI applications with the
argparse module, and using Python’s asynchronous features.
02:58 You might learn more by going ahead and giving the project a go. You can always download the completed code as part of the project materials to use as a comparison if you do have a problem that you can’t solve. With this short overview of your website connectivity checker project and the prerequisites, you are almost ready to start Python and having fun while coding, but first you need to create a suitable working environment and set up your project’s layout.
Become a Member to join the conversation.