title: Returning keyerror on calling function
body: <p>I'm having an issue with testing this BeautifulSoup crawler. Forgive me if there is some obvious mistake, since this is my third hour into Python. I have this code below...</p>
  
  <pre><code>def huffpost_crawl():
   article_list = []
   DOMAIN = 'huffingtonpost.com'
   huff_soup = BeautifulSoup(urllib2.urlopen("http://www.huffingtonpost.com").read())
   news_list = huff_soup.find_all("div", {"class", "snp_most_popular_entry"})[0]
   for news in news_list[0]:
      title = news('div', {'class', 'snp_most_popular_entry_desc'})[0].a.get_text()
      full_url = news('div', {'class', 'snp_most_popular_entry_image'}).a["href"]
      blurb = ""
      thumb_url = news('div', {'class', 
     'snp_most_popular_entry_image'}).a.img["longdesc"]
  
  
   print title
  
  huffpost_crawl()
  </code></pre>
  
  <p>When I run <code>pythong test.py</code> in my terminal, I'm returned with...</p>
  
  <pre><code>Traceback (most recent call last):
    File "test.py", line 21, in &lt;module&gt;
    huffpost_crawl()
  File "test.py", line 11, in huffpost_crawl
    for news in news_list[0]:
  File "/usr/local/lib/python2.7/site-packages/bs4/element.py", line 879, in __getitem__
    return self.attrs[key]
  KeyError: 0
  </code></pre>