Questions tagged [w3m]

w3m is a text-based web browser as well as a pager like `more' or `less'. With w3m you can browse web pages through a terminal emulator window (xterm, rxvt or something like that). Moreover, w3m can be used as a text formatting tool which typesets HTML into plain text.

37 questions
1
vote
1 answer

w3m Preformat output of website

I want to use w3m a little bit more. However, when I try to use search engines like w3m https://www.startpage.com/do/dsearch?query=test, I get one screen of unnecessary links that I don't need. However, the search results I'm interessted in should…
uwe
  • 19
  • 1
1
vote
1 answer

How do you get just one specific line of a webpage's source code from the terminal?

I am trying to get the 400th line of source code from a number of web pages via the terminal. So far, the only way I have been able to do this is by downloading the entire source code from the page (using cURL) and then extracting the line I want,…
Frick Steves
  • 327
  • 2
  • 11
1
vote
1 answer

How to swap up/down arrow key behaviour and C-n/C-p behaviour in emacs *w3m* buffer

I am trying to find a quick elisp fix that makes w3m under Emacs swap default behaviour of UP/DOWN arrows (moving between hyperlinks in loaded page), with C-n/C-p (moving to next and previous line in the page). These key-bindings must only apply…
codeasone
  • 1,881
  • 2
  • 23
  • 30
1
vote
0 answers

web browser on ubuntu server ERROR:browser_main_loop.cc(237) Gtk: cannot open display

Question/Problem I am getting an error message when I am trying to run a web browser from the terminal. The error message is basically: ...ERROR:browser_main_loop.cc(237) Gtk: cannot open display... How can I correct this problem/get a browser to…
Reed Williams
  • 277
  • 1
  • 4
  • 10
1
vote
2 answers

Is it possible to disable JS in RoR project?

New to rails. Was working on chapter 2 of railsTutorial. I was pair programming with someone who only uses text based browser w3m. So once we created user resource, we created a new user and tried deleting it but couldn't. I could do it on my…
Aniruddha
  • 2,649
  • 4
  • 25
  • 40
1
vote
0 answers

How to render GIF animations in urxvt in order to integrate animated previews in ranger?

Ranger optionally uses the w3mimgdisplay binary in order to display image previews in the terminal. Similarly I would like animated gifs to be animated in ranger's preview area. I've been testing in urxvt: #! /bin/bash clear gifsicle -e $1 for f in…
Bart
  • 123
  • 8
1
vote
2 answers

Couldn't display images under emacs-w3m on MacOS 10.9

I am using emacs 24.3. I use the common setting that add to .emacs: (setq w3m-default-desplay-inline-images t) but it's not work. I also try to toggle to display image via shortcut T in emacs-w3m, it shows "Can't display images in this…
Josan
  • 610
  • 1
  • 5
  • 25
1
vote
2 answers

How do I extract content from a webpage with certain headers in bash?

So far I am using curl along w3m and sed to extract portions of a webpage like ....content..... I want to ignore all the other headers (ex. ,
). Except the way I am doing it right now is really slow. curl -L…
CrudeCoder
  • 361
  • 5
  • 17
1
vote
1 answer

how to display the part of the html using emacs-w3m

I found a w3m plugin in w3m-extension.el for English-Chinese dict like this: (defun w3m-search-dict-cn () "Translate input word and search from dict.cn." (interactive) (w3m-search-advance "http://dict.cn/search/?q=" "English Dict.cn"…
savior
  • 652
  • 5
  • 12
1
vote
0 answers

How do I generate JDK 7 api docs as HTML tables rather than CSS for display in emacs-w3m

JDK 6 api javadocs use HTML tables for layout. These tables display nicely in emacs-w3m, which means I can browse api docs without leaving the emacs. JDK 7 api javadocs use CSS for layout. This renders this top menu bar as a
    which displays…
sw1nn
  • 7,070
  • 1
  • 21
  • 35
1
vote
1 answer

Configure w3m with Emacs Error

I am trying to configure and use w3m with emacs 23. I have w3m on my system and have downloaded and make/install emacs-w3m 1.4.4. However, when I put (require 'w3m-load) into my .emacs file it throws an error on emacs startup: File error: Cannot…
forTruce
  • 844
  • 1
  • 7
  • 17
0
votes
1 answer

How are images shown in the terminal

Some packages like w3m-img, fim, lsix etc can be used to show the images directly on the terminal itself on linux. I am not talking about converting the image into an ASCII character version and showing it but the image itself which looks proper…
bitDaft
  • 53
  • 7
0
votes
1 answer

Viewing Inline images in Mutt mail on macos/OSX

Is there any way to see inline images in mutt pager view in terminal? I've tried w3m but it requires w3m-img which seems not for macos/osx. Can anyone suggest if it's possible to integrate imgcat(avaiable in iterm2) in mailcap? Please suggest…
Maruf
  • 1
  • 1
0
votes
1 answer

w3m unix encoding latin accents

im trying to get only text from a webpage using terminal, but im having problems with latin accents like 'áéíóú'. im using w3m -dump https://www.revistavirtualpro.com/noticias/energia but if you try the code you can see that in some words are…
0
votes
2 answers

How to close a web site visited using w3m on Termux on Android?

I installed w3m on Termux on Android and then opened google.com using the statement w3m https://google.com/. I would like know how to get out of w3m back to the Terminal window.
bonyem
  • 798
  • 7
  • 18