title: Go from one page to another with urllib2
body: <p>I'm writing a program and I need to go from one page to another like you would on a computer.</p>
  
  <p>On urllib I go to a page and get a url from that pages source then I take that url and I go to that but I'm getting an error from the site saying I came from the wrong page since urllib doesn't start on one page and go to another it opens a new page instead. 
  .
  here is some example code:</p>
  
  <pre><code>tree = self.opener.open('http://www.example.com').read()
  #Beautiful soup parsing to get the new _url
  new_page = self.opener.open('http://www.example/new_url.com').read()
  print new_page #Output is error page
  </code></pre>
  
  <p>How can I write it so that the site thinks I came from the previous page I was on?</p>
  
  <p>Thank You</p>