i would like to scrape some info from a page only the status if it's online or offline.

it has the following code
<span title="Online
that i would like to check.

so if the Online is found i want to show a page and if the page is offline it shows a message.

what would the best way to do this