title: writerow in CSV file problems
body: <p>I'm a beginner in Python, and I'm trying to extract data from the web and display it in a table : </p>
  
  <pre><code># import libraries
  import urllib2  
  from bs4 import BeautifulSoup  
  import csv  
  from datetime import datetime
  
  quote_page = 'http://www.bloomberg.com/quote/SPX:IND' 
  page = urllib2.urlopen(quote_page)  
  soup = BeautifulSoup(page, 'html.parser') 
  name_box = soup.find('h1', attrs={'class': 'name'})
  name = name_box.text.strip() 
  print name
  price_box = soup.find('div', attrs={'class':'price'})  
  price = price_box.text  
  print price  
  
  with open('index.csv', 'a') as csv_file:  
      writer = csv.writer(csv_file)
      writer.writerow([name, price, datetime.now()])
  </code></pre>
  
  <p>this is a very basic code that extract data from bloomberg and display it in an csv file. 
  It should display the name in a column, the price in an other one and the date in the third one. 
  But actually it copy all this data in the first row :  <a href="https://i.stack.imgur.com/UT7g5.png" rel="nofollow noreferrer">Result of the index.csv file</a> . </p>
  
  <p>Am I missing something with my code? </p>
  
  <p>Thank you for your help ! </p>