title: Can we reload a page/url in python using urllib or urllib2 or requests or mechanize?
body: <p>I am trying to open a page/link and catch the content in it.
  It gives me the required content sometimes and throws error sometimes. 
  I see that if I refresh the page a few times - I get the content.</p>
  
  <p>So, I want to reload the page and catch it.</p>
  
  <p>Here's my pseudo code:</p>
  
  <pre><code>attempts = 0
  while attempts:
      try:
          open_page = urllib2.Request(www.xyz.com)
          # Or I think we can also do urllib2.urlopen(www.xyz.com)
          break
      except: 
          # here I want to refresh/reload the page
          attempts += 1
  </code></pre>
  
  <p><br>
  My questions are:<br>
  1. How can I reload the page using urllib or urllib2 or requests or mechanize? <br>
  2. Can we loop try catch that way?</p>
  
  <p>Thank you!</p>