title: Function from list of parameters
body: <p>can you please help me with my python code? I wanted to parse several homepages with beautiful soup provided in the list html with the function stars</p>
  
  <pre><code>html=["https://www.onvista.de/aktien/fundamental/Adidas-Aktie-DE000A1EWWW0", "https://www.onvista.de/aktien/fundamental/Allianz-Aktie-DE0008404005", "https://www.onvista.de/aktien/fundamental/BASF-Aktie-DE000BASF111"]
  
  def stars(html):
      bsObj = BeautifulSoup(html.read())
      starbewertung = bsObj.findAll("section")[8].findAll("div")[1].findAll("span")[16]
  
      str_cells = str(starbewertung)
      cleantext = BeautifulSoup(str_cells, "lxml").get_text()
      print(cleantext)
  
  
      lst=[]
      lst.append(cleantext)
  
  stars(html)
  </code></pre>
  
  <p>Instead I am getting an error "AttributeError: 'list' object has no attribute 'read'"</p>