Re: Save data to a file thru a http connection
- From: Scott David Daniels <scott.daniels@xxxxxxx>
- Date: Wed, 31 May 2006 14:11:29 -0700
yinglcs@xxxxxxxxx wrote:
I am new to python. I read an example here about how to fetch data thru
a HTTP connection:
http://diveintopython.org/http_web_services/review.html,
My question is how can i save the data to a file after reading it from
a http connection.
Do the tutorial and this and many other things will become clear.
Instead of just "print sometext", do something like:
...
f = open('filename', 'w')
...
print >>f, sometext
... (possibly more prints like the above).
f.close()
--Scott David Daniels
scott.daniels@xxxxxxx
.
- References:
- Save data to a file thru a http connection
- From: yinglcs
- Save data to a file thru a http connection
- Prev by Date: Re: shuffling elements of a list
- Previous by thread: Re: Save data to a file thru a http connection
- Next by thread: using import * with GUIs?
- Index(es):
Relevant Pages
|