title: beautifulsoup "list object has no attribute" error
body: <p>I'm trying to scrape temperatures from a <a href="http://www.wunderground.com/history/airport/KAPA/2013/3/1/DailyHistory.html" rel="noreferrer">weather site</a> using the following:</p>
  
  <pre><code>    import urllib2
  from BeautifulSoup import BeautifulSoup
  
  f = open('airport_temp.tsv', 'w')
  
  f.write("Location" + "\t" + "High Temp (F)" + "\t" + "Low Temp (F)" + "\t" + "Mean Humidity" + "\n" )
  
  eventually parse from http://www.wunderground.com/history/airport/\w{4}/2012/\d{2}/1/DailyHistory.html
  
  for x in range(10):
      locationstamp = "Location " + str(x)
      print "Getting data for " + locationstamp
      url = 'http://www.wunderground.com/history/airport/KAPA/2013/3/1/DailyHistory.html'
  
      page = urllib2.urlopen(url)
      soup = BeautifulSoup(page)
  
      location = soup.findAll('h1').text
      locsent = location.split()
      loc = str(locsent[3,6]) 
  
      hightemp = soup.findAll('nobr')[6].text
      htemp = hightemp.split()
      ht = str(htemp[1]) 
  
      lowtemp = soup.findAll('nobr')[10].text
      ltemp = lowtemp.split()
      lt = str(ltemp[1]) 
  
      avghum = soup.findAll('td')[23].text
  
      f.write(loc + "\t|" + ht + "\t|" + lt + "\t|" + avghum + "\n" )
  
  f.close()
  </code></pre>
  
  <p>Unfortunately, I get an error saying: </p>
  
  <pre><code>Getting data for Location 0
  Traceback (most recent call last):
    File "airportweather.py", line 18, in &lt;module&gt;
      location = soup.findAll('H1').text
  AttributeError: 'list' object has no attribute 'text'
  </code></pre>
  
  <p>I've looked through BS and Python documentation, but am still pretty green, so I couldn't figure it out. Please help this newbie!</p>