Locked learning resources

Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Locked learning resources

This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Building a Site Connectivity Checker (Summary)

You’ve built a functional site connectivity checker application in Python. Now you know the basics of handling HTTP requests to a given website. You also learned how to create a minimal yet functional command-line interface (CLI) for your application and how to organize a real-world Python project. Additionally, you’ve tried out Python’s asynchronous features.

In this video course, you learned how to:

  • Create command-line interfaces (CLI) in Python with argparse
  • Check if a website is online using Python’s http.client
  • Run synchronous checks on multiple websites
  • Check if a website is online using aiohttp
  • Check the connectivity of multiple websites asynchronously

Now that you’ve finished building your site connectivity checker application, you can go a step further by implementing a few additional features. Adding new features by yourself will push you to learn about new and exciting coding concepts and topics.

Here are some ideas for new features:

  • Timing support: Measure the response time of every target website.
  • Check-scheduling support: Schedule multiple rounds of connectivity checks in case some websites are offline.

To implement these features, you can take advantage of Python’s time module, which will allow you to measure the execution time of your code.

Once you implement these new features, then you can change gears and jump into other cool and more complex projects. Here are some great next steps for you to continue learning Python and building projects:

Download

Sample Code (.zip)

4.2 KB
Download

Course Slides (.pdf)

5.8 MB

Become a Member to join the conversation.