Let’s start by writing a function that checks to see whether the contents of a website had changed. Part 1: Writing the Python Script Checking to see if the webpage was changed If you don’t wait long enough, the server may think you’re trying to attack it and it may ban your IP address. Make sure your program waits longer than 10 seconds before sending another request. That’s when a bunch of computers in lots of different places simultaneously send requests to the same server, flooding it with too many requests so that it cannot distinguish between legitimate clients and attackers, so it has no choice but to stop serving everyone.ĭo not use this tutorial to perform a DDoS attack! That is bad. The most infamous kind of DoS attack is a DDoS attack, short for Distributed Denial-of-Service. It’s a kind of network attack that involves trying to take down a server or network by bombarding it with way too many requests. Tl dr: If you request the same webpage too frequently, the web server may think that you are trying to attack it and will block you.ĭoS stands for Denial-of-Service. The word of caution is actually an acronym: DoS. If you just want to learn how to make the webpage monitor, stop after reading through Part 1 of the tutorial. That means that you can use an old PC that you have in your attic or an AWS EC2. You don’t need a Raspberry Pi to run this webpage monitor! Any dedicated device that has python and connect to the internet will work. I’m using Python 3.7.3 but any Python version 3.* should work for this project. py files, and are able to install python packages/modules using pip. Looking for a fun project that you can do on your Raspberry Piīefore starting, make sure you’re familiar at least with the basics of python, know how to execute. ![]() This tutorial is perfect for you if you are… If you want to skip the tutorial, you can find all of the code on this Github repo. So I decided to run it on my Raspberry Pi, which is perfect for just this kind of project. I could have just let this python script run on my personal laptop, but I use my laptop for lots of other things and don’t like to leave it on for long periods of time. If they’re different, send an email and text message to me to let me know that the webpage has changed. If they’re equal, that means the website hasn’t changed do nothing.
0 Comments
Leave a Reply. |