Skip to content

Instantly share code, notes, and snippets.

@GitHub30
Created April 26, 2018 01:49
Show Gist options
  • Save GitHub30/8e2f086b185ccf669111095b1b6f90e2 to your computer and use it in GitHub Desktop.
Save GitHub30/8e2f086b185ccf669111095b1b6f90e2 to your computer and use it in GitHub Desktop.
from os import system
from time import sleep
from requests_html import HTMLSession
url = 'http://releases.ubuntu.com/18.04/'
print(url)
while True:
if HTMLSession().get(url).html.find('title', first=True).text != 'Ubuntu 18.04 LTS (Bionic Beaver) Beta 2':
system('notify-send "Ubuntu 18.04 released"')
sleep(10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment