creating csv file from

Premshree Pillai premshree.pillai at gmail.com
Wed Mar 2 10:08:24 EST 2005


On Wed, 2 Mar 2005 08:27:35 -0600, Skip Montanaro <skip at pobox.com> wrote:
> >>>>> "Sandeep" == Sandeep Avinash Gohad <gohadbhai at rediffmail.com> writes:
> 
>     Sandeep> How can i use the url as an input so that I can save data from
>     Sandeep> that particular webpage to comma seperated file (csv).
> 
> This worked for me:
> 
>     import urllib, csv
>     reader = csv.reader(urllib.urlopen("http://.../some.csv"))
>     for row in reader:
>         print row

He's not opening a CSV file... he wants to open a 'regular' web-page,
and then "convert it to CSV".

> 
> Skip
> --
> http://mail.python.org/mailman/listinfo/python-list
> 


-- 
Premshree Pillai
http://www.livejournal.com/users/premshree/



More information about the Python-list mailing list