browsh icon indicating copy to clipboard operation
browsh copied to clipboard

Is it possible to download files?

Open ilmoi opened this issue 4 years ago • 4 comments

This is an amazing project, exactly what I needed for whenever I'm stuck on a headless machine and need to do some surfing.

Is there a way to download files? I've tried hitting download links but the browser seems stuck as "loading https://url.here". For example this page - https://archive.org/details/comma-dataset

Maybe I'm missing something. Thanks.

ilmoi avatar Nov 30 '20 05:11 ilmoi

I have discovered where the files exist. You can find them in /tmp/mozilla_root0/. You will not be able to know when the files have finished downloading unfortunately, but you can grab the "parts" from there. Basically its Firefox's temp download folder where it downloads things first before moving them to the appropriate download directory. The files are labeled XXXXXX.ext.part.

Currently, I check the size of those files to see if they are close. Then when the files size does not change for a little while, I know it has finished and can copy the file out to where I want it (renaming it in the process).

flamewave000 avatar Aug 03 '21 17:08 flamewave000

Using the docker version, I can download files and access them later:

docker  run -v $PWD:/tmp/mozilla_root0/ -it --rm browsh/browsh bash -c ./browsh

fabceolin avatar Dec 05 '21 20:12 fabceolin

At my server they're being downloaded to ~/Downloads instead. Maybe someone will find it useful

pstorozenko avatar Jun 06 '23 20:06 pstorozenko