why can not display HTML codes?
<p>In test.txt, I have 2 lines of sentences.</p>

<pre><code>The heart was made to be broken.
There is no surprise more magical than the surprise of being loved.
</code></pre>

<p>In codes:</p>

<pre><code>import urllib2
file = open('/Users/name/Desktop/textfile.txt','r')
data = file.readlines()
file.close()
countline = 0
for line in data:
    countline = countline + 1
    line_replace = line.replace(" ", "+")
    line_url = 'http://sentistrength.wlv.ac.uk/results.php?text=' + line_replace + '&amp;submit=Detect+Sentiment'
    requesturl = urllib2.Request(line_url)
    openurl = urllib2.urlopen(requesturl)
    readurl = openurl.read()
    print readurl
</code></pre>

<p>I am trying to print out HTML codes. If there is only 1 sentence in Textfile. Everything work fine but there is an error when there is 2 sentences in text file (I want to display html codes of both sentence.) Any possible way for solving this?</p>

<p>The error: </p>

<pre><code>URLError: &lt;urlopen error no host given&gt;             
</code></pre>
