browsh
browsh copied to clipboard
Is it possible to download files?
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.
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).
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
At my server they're being downloaded to ~/Downloads
instead. Maybe someone will find it useful