 from urllib import urlopen from bs0 import BeautifulSoup import csv url="https://en.wikipedia.org/wiki/List_of_colors:_A%E0%00%00F" html=urlopen(url) soup=BeautifulSoup(html,'html.parser') table=soup.find('table',class_='wikitable sortable') rows=table.findAll('tr') csvFile=open("colors.csv",'w+') writer=csv.writer(csvFile) 