Lurker News

Comments (322) 75 threads

Show all comments

Showing thread 56 of 75

genpfault4 replies#
> Browsh consists of a minimal Golang CLI client and a browser webextension. Most of the work is done by the webextension. When the CLI starts, it looks for a compatible browser (currently only Firefox) and starts it in headless mode. Once the browser has started it opens a remote debugging connection and installs the extension.

So a browser wrapper.

beamatronic1 reply#
Why wouldn’t you just use lynx?
tombh1 reply#
Lynx doesn't even support modern SSL,let alone HTML5, CSS3, JS, WebGL, WebAssembly - all of which are supported by Browsh.
johnklos1 reply#
Lynx uses whatever SSL is on your system, so if your OpenSSL doesn't support modern SSL, then it's time for you to upgrade ;)
minitech2 replies#
Current ELinks does support SNI. That bug might have been RHEL being on an old version.

Continue this thread — 2 replies

sedachv2 replies#
elinks and lynx are completely different browsers. Lynx is actively developed and can link against recent versions of OpenSSL, GnuTLS, and LibreSSL. The latest release came out yesterday: http://lynx.invisible-island.net/release/

Lynx can render HTML5 web pages. Not sure what WebGL has to do with a web browser that is meant for terminal emulators. CSS is not supported in text browsers in general (not all of them are full-screen terminal applications) because it makes no sense - for decent text rendering, the browser needs to ignore style sheets and render in a way appropriate for text output.

tombh1 reply#
Yes you're right, it's unfair to lump elinks and lynx together. It's before Browsh I would use elinks all the time as it seemed the most modern.

Surely though just the sheer fact of CSS's `hidden` declaration has to be taken into account by any browser, text-based nor not? I've came to the conclusion that there just simply isn't a subset of modern web standards that you can adhere to and still use the web today. Our best option is just to piggy back off one of the major browsers that does all the hard work of keeping up with the rapidly changing technologies.

mattl3 replies#
I like the idea behind your wrapper but I think you’re mistaken regarding hidden. Things are hidden from browsers for a lot of reasons but a text browser should probably safely ignore them all as content and presentation are different.

Continue this thread — 3 replies

flas9sd#
apart from ssl, there are slight differences: last time I checked, "lynx" will do a http/1.0 request. Ubuntu nginx-common config suggestions do not ship gzipped content below http/1.1 if enabled without change (gzip_http_version 1.0). "w3m" is the same. "links" does http/1.1 without explicit runtime argument. I need to measure if this makes a difference in the general web (or with a day of my browsing history). http/1.0 sure does receive compressed content with "accept-encoding: gzip", but I'm curious if the http-version will make a big difference. Firefox will give you http/2.0 I stumbled on this detail when I was capped to 2 kbytes/s and tried different cli browser. I applaud the authors effort. The docs should mention the bandwith benefits are gained primarily if you have a remote to ssh into where you can setup a firefox install.
azernik1 reply#
In implementation, sure. But from the user's perspective, it's just a browser.
noobermin2 replies#
But it doesn't work without X, a common use case for lynx/links/w3m
hpaavola1 reply#
Does it really? Firefox when run in headless mode does not require X.

Continue this thread — 1 reply

Continue this thread — 2 replies

tombh#
Arguably you could say the same about Opera's "wrapping" of the Chrome libs.
mikorym3 replies#
I was wondering about this. If everything goes through an already installed browser, then what is the advantage that browsh has over a minimalistic fork of Firefox with e.g., lower bandwith features?
jdoliner#
For this to actually give a bandwidth advantage I think the browser would have to be running on a server somewhere... so the browser has become the server.
pkulak1 reply#
I guess the point is to install this on some random server somewhere that you can then SSH to. It really does seem like a good way to have a speedy browser experience over even insanely slow network connections.
mikorym#
Does one then need a Firefox installation on the server, or can it be through a local Firefox installation?

Edit: according to comments below the headless browser (i.e., the Firefox installation) runs on the server. After this, the smaller bandwith data gets sent directly over SSH.

cup-of-tea#
The point is it works without graphics so you can use it over ssh, for example.