grab icon indicating copy to clipboard operation
grab copied to clipboard

Proposal: support new request to writer

Open gonejack opened this issue 4 years ago • 2 comments

It will be more easy to migrate from code like io.Copy(writer, resp.Body) to grab if grab supports new download to an opened writer.

grab.NewRequestToWriter(writer io.Writer, url string)

gonejack avatar Jan 29 '21 02:01 gonejack

yes, it is a good feature, i would also like to support this feature

cellargalaxy avatar Feb 22 '22 14:02 cellargalaxy

@gonejack @cellargalaxy check this out. I just added support for grab.NewRequestToWriter. https://github.com/opensaucerer/grab#this-extended-version-of-the-original-cavaliergophergrab-now-allows-you-to-download-files-into-a-given-iowriter

opensaucerer avatar Sep 20 '23 04:09 opensaucerer