title: Issues with appending to list - IndexError: list index out of range
body: <p>I'm building a simple web scraping script to get my feet wet with python.
  I'm hitting a little but of an issue with the following </p>
  
  <pre><code>#Create 3 different lists to populate.
  mails = []
  phones = []
  webs = []
  
  def go_get_info(info):
      for item in info:
          #email = (item.contents[3].find_all("span", {"class": "text"})[0].text).strip()
          #phone = (item.contents[3].find_all("span", {"class": "text"})[1].text).strip()                                                                                                          
          www = (item.contents[3].find_all("span", {"class": "text"})[2].text).strip()
          if not www:
                  webs.append("empty")
          else:
                  webs.append(www)
  </code></pre>
  
  <p>The idea is that I would get email, phone, and web address into each of the three lists, zip them togther and then iterate through and write to CSV. </p>
  
  <p>The only value here that I seem to have an issue with is www **(and so as you can see I've left it uncommented). **I've also tried to mitigate the issue by adding an empty condition.**** </p>
  
  <p>When I run the script that calls this function, I am returned the following</p>
  
  <pre><code>± |add-csv-support U:1 ?:1 ✗| → python scrape.py 
  Traceback (most recent call last):
    File "scrape.py", line 55, in &lt;module&gt;
      go_retrieve_contact(get_venue_link_list(links))
    File "scrape.py", line 30, in go_retrieve_contact
      go_get_info(info)
    File "scrape.py", line 43, in go_get_info
      www = (item.contents[3].find_all("span", {"class": "text"})[2].text).strip()
  IndexError: list index out of range
  </code></pre>
  
  <p>It makes sense to me that the issue is either with the value being returned or the lack of a value.  I've googled but couldn't find a complete solution. </p>
  
  <p>What could I do in this case to </p>
  
  <p>A) Better understand whats happening and debug better.</p>
  
  <p>B) Solve the problem.</p>
  
  <p>Thanks,</p>