title: Python (3.5) - urllib.request.urlopen - Progress Bar Available?
body: <p>I'm trying to search the world wide web for this answer, but I feel there answer may be no. I'm using Python 3.5 and a library called <code>urllib.request</code> with a method called <code>urllib.request.urlopen(url)</code> to open a link and download a file. </p>
  
  <p>It would be nice to have some kind of measure of progress for this, as the file(s) are over 200MB. I'm looking at the API <a href="https://docs.python.org/3/library/urllib.request.html?highlight=urllib.request.urlopen#urllib.request.urlopen" rel="noreferrer">here</a>, and don't see any kind of parameter with a hook. </p>
  
  <p>Here's my code: </p>
  
  <pre><code>downloadURL = results[3] #got this from code earlier up
  rel_path = account + '/' + eventID + '_' + title + '.mp4'
  
  filename_abs_path = os.path.join(script_dir, rel_path)
  print('&gt;&gt;&gt; Downloading &gt;&gt;&gt; ' + title)
  
  # Download .mp4 from a url and save it locally under `file_name`:
  with urllib.request.urlopen(downloadURL) as response, open(filename_abs_path, 'wb') as out_file:
      shutil.copyfileobj(response, out_file)
  </code></pre>
  
  <p>Can anyone provide insight if they think I can potentially have a progress bar or would the only way be to use a different library? I'm looking to keep the code quite short and simple, I just need some indication of the file being downloaded. Thanks for any help provided!</p>