Scraping downforeveryoneorjustme.com for johnny-five.io

First, go to https://downforeveryoneorjustme.com/ and enter johnny-five.io in the URL input, and hit Enter. You should end up at https://downforeveryoneorjustme.com/johnny-five.io, where hopefully you'll see a rather simple page that looks like this:

Now to prepare for our web scraping code, we need to know what HTML element we're looking for as well as the URL. Right-click the It's just you. and select Inspect (or whichever variation it is on your browser. In Chrome, you'll see something like this:

This is one of the perils of web scraping: there's not always a lot to go on to find your element. The closest we get is the first paragraph (p tag) of the div with ID domain-main-content. We'll want to see if it contains the string It's just you. in order to determine if johnny-five.io is up.

Now that we have our URL and intended element and parsing criteria, let's start coding by getting the HTML into our Johnny-Five project.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.174.174