i'm extracting data but some special characters will causing an error
from unicodedata import normalize
import codecs
import csv
import urllib2
import requests
from BeautifulSoup import BeautifulSoup
url = 'https://www.ratebeer.com/top'
response = requests.get(url)
html = response.content
soup = BeautifulSoup(html)
table = soup.find('tbody')
list_of_rows = []
for row in table.findAll('tr'):
list_of_cells = []
for cell in row.findAll('td'):
text = cell.text
list_of_cells.append(text)
list_of_rows.append(list_of_cells)
outfile = open("./top50.csv", "wb")
writer = csv.writer(outfile)
writer.writerows(list_of_rows)
trying to extract a csv to import to excel with 50 top beer, rank,name,style,brewery, rating