title: urllib.request.urlopen(url) with Authentication
body: <p>I've been playing with beautiful soup and parsing web pages for a few days. I have been using a line of code which has been my saviour in all the scripts that I write. The line of code is : </p>
  
  <pre><code>r = requests.get('some_url', auth=('my_username', 'my_password')).
  </code></pre>
  
  <p>BUT ...</p>
  
  <p>I want to do the same thing with (OPEN A URL WITH AUTHENTICATION):</p>
  
  <pre><code>(1) sauce = urllib.request.urlopen(url).read() (1)
  (2) soup = bs.BeautifulSoup(sauce,"html.parser") (2)
  </code></pre>
  
  <p>I'm not able to open a url and read, the webpage which needs authentication. 
  How do I achieve something like this :</p>
  
  <pre><code>  (3) sauce = urllib.request.urlopen(url, auth=(username, password)).read() (3) 
  instead of (1)
  </code></pre>