Timeline for How to download a file over HTTP?
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 6, 2017 at 14:20 | comment | added | Mmmh mmh |
Use shutil.copyfileobj(mp3file, output) instead.
|
|
Nov 16, 2016 at 12:29 | comment | added | Rodrigo E. Principe | @hughdbrown I found your script useful, but have one question: can I use the file for post-processing? suppose I download a jpg file that I want to process with OpenCV, can I use the 'data' variable to keep working? or do I have to read it again from the downloaded file? | |
S Mar 10, 2016 at 17:14 | history | edited | Matthew Strawbridge | CC BY-SA 3.0 |
made this shorter and RAII-compatible. Also, added explicit language specifier and tweaked descriptive text
|
S Mar 10, 2016 at 17:14 | history | suggested | Parthian Shot | CC BY-SA 3.0 |
made this shorter and RAII-compatible. Also, added explicit language specifier
|
Mar 10, 2016 at 16:39 | review | Suggested edits | |||
S Mar 10, 2016 at 17:14 | |||||
Oct 7, 2015 at 16:02 | comment | added | hughdbrown |
To avoid reading the whole file into memory, try passing an argument to file.read that is the number of bytes to read. See: gist.github.com/hughdbrown/c145b8385a2afa6570e2
|
|
Jul 30, 2015 at 15:10 | comment | added | Lucas Henrique | @tripplet so how would we fix that? | |
Jul 7, 2015 at 9:40 | review | Suggested edits | |||
Jul 7, 2015 at 10:27 | |||||
Nov 18, 2012 at 13:33 | comment | added | tripplet | The disadvantage of this solution is, that the entire file is loaded into ram before saved to disk, just something to keep in mind if using this for large files on a small system like a router with limited ram. | |
Aug 22, 2008 at 15:58 | history | answered | Grant | CC BY-SA 2.5 |