Re: writing a csv file

2012-11-11 Thread Mark Lawrence
On 12/11/2012 00:05, ejsa...@alaska.edu wrote: with open("/home/eyalak/Documents/weather/weather.csv", "wb") as f: writer = csv.writer(f) table = soup.findAll("table")[3] #print table for tr in table.findAll("tr", valign="top"): a={x.string for x in tr.findA

writing a csv file

2012-11-11 Thread ejsaiet
Hello, I have the script below, which it extracts NOAA data from HTML and is planed writes it to a CSV file. Here is the script: import urllib2 from bs4 import BeautifulSoup from time import localtime, strftime import csv #This script is intended to retrive NOAA data and apend it to a csv file.