creating csv file from

Skip Montanaro skip at pobox.com
Wed Mar 2 09:27:35 EST 2005


>>>>> "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

Skip



More information about the Python-list mailing list