title: How to get the URL of a redirect with Python
body: <p>In Python, I'm using urllib2 to open a url. This url redirects to another url, which redirects to yet another url. </p>
  
  <p>I wish to print out the url after each redirect.</p>
  
  <p>For example</p>
  
  <p>-> = redirects to</p>
  
  <p>A -> B -> C -> D</p>
  
  <p>I want to print the URL of B, C and D (A is already known because it's the start URL).</p>