With Julia 1.6's download
function, the typical behavior is to output to a file. How can I save the result directly to something in memory?
E.g. I'd like something like:
result = download(url)
contains(result,"hello")
As suggested by the help text for download
, use the Downloads library; download
can take an IOBuffer
. Example:
result = String(take!(Downloads.download(url,IOBuffer())))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With