Load URL without graphical interface
<p>In Python3, I need to load a URL every set interval of time, but without a graphical interface / browser window. There is no JavaScript, all it needs to do is load the page, and then quit it. This needs to run as a console application.</p>

<p>Is there any way to do this?</p>

<p>You could use <code>threading</code> and create a <code>Timer</code> that calls your function after every specified interval of time.</p>

<pre><code>import time, threading, urllib.request

def fetch_url():
    threading.Timer(10, fetch_url).start()
    req = urllib.request.Request('http://www.stackoverflow.com')
    with urllib.request.urlopen(req) as response:
        the_page = response.read()

fetch_url()
</code></pre>

python python-3.x web