title: Parsing a list of urls in python
body: <p>I'm trying to get some text from each url in a list using urlopen. However, it seems <code>urllib</code> is unable to read each url from the list as a string and keeps returning this error:</p>
  
  <pre><code>AttributeError: 'list' object has no attribute 'timeout'
  </code></pre>
  
  <p>When I try to convert each list object to string in the loop, it still can't read it:</p>
  
  <pre><code>URLError: urlopen error unknown url type: ['https&gt;
  </code></pre>
  
  <p>My code looks like this:</p>
  
  <pre><code>for url in urls:
      str_url = str(url)
      page = urlopen(str_url).read()
      soup = bs(page)
  </code></pre>
  
  <p>the values come from a csv file where each url is a row. When printed in loop it looks like this: </p>
  
  <p>['premierleague.com/players/3861/player/overview#']
  ['premierleague.com/players/2537/player/overview#'] 
  ...and so on</p>