I do urllib2 and I download the htmlSource of the webpage. How do I make this all on 1 line? (Python)
<pre><code>urlReq = urllib2.Request(theurl)
urlReq.add_header('User-Agent',random.choice(agents))
urlResponse = urllib2.urlopen(urlReq)
htmlSource = urlResponse.read()
</code></pre>

<p>How do I make htmlSource in 1 line, instead of many lines?</p>
