Urllib2: how to get content of page
<p>I have some urls:</p>

<pre><code>http://www.avito.ru/ryazan/avtomobili?pmax=50000&amp;f=188_893b13978
http://www.avito.ru/ryazan/avtomobili?pmax=50000&amp;f=188_898b13978
http://www.avito.ru/ryazanskaya_oblast/avtomobili?pmax=50000&amp;f=188_898b13978
http://www.avito.ru/ryazanskaya_oblast/avtomobili?pmax=50000&amp;f=188_898b13978
http://www.avito.ru/ryazanskaya_oblast/avtomobili?pmax=100000&amp;pmin=50000&amp;f=188_898b13978
</code></pre>

<p>I try to get content of this page I get an error <code>urllib2.URLError: &lt;urlopen error [Errno 10060]</code>
I use code 
<code>urllib2.urlopen(url).read()</code>
What I do wrong?</p>

<p>Its working fine for me. I used <code>requests</code> module to get the page. Python <code>requests</code> is better. If you dont have <code>requests</code> module installed you can install it by <code>pip install requests</code></p>

<pre><code>import requests

for url in urls: # if you are using a list to hold your urls
    r = requests.get(url)
    r.content # will display the entire page content
</code></pre>

<p>If this also doesnt work, its better to check your proxy connection.</p>

python urllib2