Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #87063
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2015-03-06 14:05 -0800 |
| References | <adcd6103-cba5-4eda-9af6-e6ba95789159@googlegroups.com> |
| Message-ID | <53fba4b4-d751-4e57-9da3-7fa1aa3ed8f1@googlegroups.com> (permalink) |
| Subject | Re: Append a file |
| From | sohcahtoa82@gmail.com |
On Friday, March 6, 2015 at 1:55:31 PM UTC-8, Jason Venneri wrote:
> Hello, I'm using the urllib.urlretrieve command to retrieve a couple of lines of data. I want to combine the two results into one file not two.
>
> Any suggestions?
>
> Sample
> urllib.urlretrieve('http://www.airplanes.com/data/boeing1.html','B747A.txt')
> urllib.urlretrieve('http://www.airplanes.com/data/boeing2.html','B747B.txt')
>
> I would like one file say B747C that contains the data from B747A and B747B in a file named B747C
What have you tried so far? Generally on this mailing list, we'll help you find what you're doing wrong, but we won't write your script for you.
I'll give you one hint though, you should probably try urllib.urlopen, then write the file yourself.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Append a file Jason Venneri <jv92109@gmail.com> - 2015-03-06 13:55 -0800 Re: Append a file sohcahtoa82@gmail.com - 2015-03-06 14:05 -0800 Re: Append a file Jason Friedman <jsf80238@gmail.com> - 2015-03-06 22:37 -0700 Re: Append a file Jason Venneri <jven2eri@gmail.com> - 2015-03-08 22:11 -0700
csiph-web