Skip to content
This repository has been archived by the owner on Sep 24, 2018. It is now read-only.

Commit

Permalink
Write to file in script, to act the same as scrape.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Jun 23, 2012
1 parent 5fd71a5 commit 49ee08e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion weather
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,8 @@ clear = 'NO'
if int(code) in [ 23, 24, 25, 29, 30, 44, 31, 32, 33, 34, 36 ]:
clear = 'YES'

print "%s\t%s\t%s\t%s" % (epoch, clear, text, code)
dir = sys.path[0] + '/'
fp = open(dir + 'weather.tsv', 'w')
out = "%s\t%s\t%s\t%s\n" % (epoch, clear, text, code)
fp.write(out)
fp.close()

0 comments on commit 49ee08e

Please sign in to comment.