title: Change or create a timeout with urllib request
body: <p>I have this code and I was wondering if there was any way to add a timeout delay:</p>
  
  <pre><code>req = Request(url, headers={'User-Agent': 'Mozilla/5.0'})
  WD = urlopen(req).read()
  </code></pre>