browsh-org / browsh

A fully-modern text-based browser, rendering to TTY and browsers
https://www.brow.sh
GNU Lesser General Public License v2.1
16.98k stars 415 forks source link

Is it possible to download files? #357

Open ilmoi opened 3 years ago

ilmoi commented 3 years ago

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.

flamewave000 commented 3 years ago

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).

fabceolin commented 2 years ago

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
pstorozenko commented 1 year ago

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

theoctober19th commented 4 weeks ago

The files appeared in ~/Downloads and I checked date vs ls -l ~/Downloads to see when the file in Downloads directory was created. If the date shown in ls -l ~/Downloads is in the past than current date, then that means the file was successfully downloaded and moved to ~/Downloads in the past.