urllib2 not retrieving an url with hashes on it
<p>I'm trying to get some data from a webpage, but I found a problem. Whenever I want to go to the next page (i.e. page 2) to keep retrieving the data on it, I keep receiving the data from page 1. Apparently something goes wrong trying to switch to the next page.</p>

<p>The thing is, I haven't had problems with urls like this: </p>

<pre><code>'http://www.webpage.com/index.php?page=' + str(pageno)
</code></pre>

<p>I can just start a while statement and I'll just jump to page 2 by adding 1 to "pageno" </p>

<p>My problem comes in when I try to open an url with this format:</p>

<pre><code>'http://www.webpage.com/search/?show_all=1#sort_order=ASC&amp;page=' + str(pageno)
</code></pre>

<p>As</p>

<pre><code>urllib2.urlopen('http://www.webpage.com/search/?show_all=1#sort_order=ASC&amp;page=4').read()
</code></pre>

<p>will retrieve the source code from <a href="http://www.webpage.com/search/?show_all=1" rel="nofollow">http://www.webpage.com/search/?show_all=1</a></p>

<p>There is no other way to retrieve other pages without using the hash, as far as I'm concerned.</p>

<p>I guess it's just urllib2 ignoring the hash, as it is normally used to specify a starting point for a browser.</p>
