title: Crawler only loads one title
body: <p>i did some questions in here and them one guy gave me this code. But I need help because it is only bringing one result of my websites.txt</p>
  
  <p>Crawler.py</p>
  
  <pre><code>import urllib.request
  import re
  
  regex = "&lt;title&gt;(.+?)&lt;/title&gt;"
  pattern = re.compile(regex)
  txtfl = open('websites.txt')
  webpgsinfile = txtfl.readlines()
  urls = webpgsinfile
  htmlfile = urllib.request.urlopen(urls[i])
  htmltext = htmlfile.read().decode('utf8')
  titles = re.findall(pattern,htmltext)
  
  if len(titles) &gt; 0:
      print(titles[0])
      i+=1
  </code></pre>
  
  <p>The websites.txt</p>
  
  <pre><code>http://youtube.com
  http://bigsolutions.com.br
  </code></pre>