This question already has an answer here:

I got a project of Web Scraping using Beautiful Soup in Python and I am trying to get values of a page every 30 minutes.

I want to know how do I open an URL every x minutes/hours to get an information.

This is my code so far:

try:
    html = 'link'
except HTTPError as e:
    print(e)
except URLError:
    print("Server down or incorrect domain")
else:
    uClient = urlopen(html)
    page_html = uClient.read()
    uClient.close()

page = BeautifulSoup(page_html, "html.parser")