Hello,<div><br></div><div>I am to extract a csv file from the web and parse it in python and after that make it into an html page.</div><div><br></div><div>I want to get the data out of the csv file, get rid of the &quot;,&quot; and make it readable. </div>
<div><br></div><div>Questions:</div><div>I would like to be able to print the line I want but I don&#39;t know how to do it.</div><div>I would like to modify some lines, and make them cleaner</div><div><br></div><div>Can you help me?</div>
<div><br></div><div><br></div><div><br></div><div><br></div><div><div>import urllib, csv</div><div>url=r&quot;<a href="http://www.cs.columbia.edu/~joshua/teaching/cs3101/simpsons_diet.csv">http://www.cs.columbia.edu/~joshua/teaching/cs3101/simpsons_diet.csv</a>&quot;</div>
<div>simpsons=urllib.urlopen(url)</div><div>reader=csv.reader(simpsons,delimiter=&#39;,&#39;,quotechar=&#39;&quot;&#39;)</div><div>a=[]</div><div>b=[]</div><div>c=[]</div><div>d=[]</div><div>e=[]</div><div>for char,meal,ate,qty,com in reader:</div>
<div>    for x in char:</div><div>        a.append(x)</div><div>    for y in meal:</div><div>        b.append(y)</div><div>    for z in ate:</div><div>        c.append(z)</div><div>    for aa in qty:</div><div>        d.append(aa)</div>
<div>    for bb in com:</div><div>        e.append(bb)</div><div>for i in range(1::):</div><div>    print a[i]+b[i]+c[i]+d[i]+e[i]</div></div>