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.
Questions tagged [w3m]
42 questions
2
votes
2 answers
Link extraction from a google page in bash
I'm making a script that takes all the links from a google page in bash. I get the google page with the w3m utility and this script:
#!/bin/bash
# performs a google search using a word in input
word=$1
touch .google
if [ -z $word ]
then
…

Epilogue
- 63
- 1
- 8
1
vote
1 answer
bdw-gc install failed on lion with brew
i am install w3m with brew on lion. when i use the origin formula the installation is filed.
then i following the issues 7068 of homebrew update the bdw-gc.rb formula script
require 'formula'
class BdwGc < Formula
# url…

luozengbin
- 305
- 2
- 11
1
vote
1 answer
error: nothing provides perl(NKF) needed by w3m-0.5.3-60.git20230121.el8.x86_64
I tried to install w3m on a redhat 8 system and got the error.
# yum install w3m.x86_64
Updating Subscription Management repositories.
misc 53 kB/s | 2.0 kB 00:00
chop_vmware …

Shiping
- 1,203
- 2
- 11
- 21
1
vote
1 answer
How can I close a web site from a python app?
I have a Linux python app, that runs a web php app on a server, that requests data from a MySql database and saves the answer in a text file on the server. I can download the text file from the server using pysftp however ... I have to manually…

gerardg
- 203
- 2
- 9
1
vote
1 answer
Apache rewrite - text browser sees redirection
This isn't exactly a problem, but I'm really curious. I'm doing a simple rewrite in my .htaccess file with the [L] flag. It works fine, as expected in GUI browsers, but I see a quirk when I load the page in w3m. It still redirects as expected, but…

LedLincoln
- 31
- 4
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
- 365
- 4
- 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,953
- 2
- 23
- 30
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
- 3,157
- 4
- 32
- 48
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
- 692
- 1
- 5
- 27
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
- 381
- 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
- 802
- 6
- 14
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,278
- 1
- 26
- 36
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
- 829
- 2
- 7
- 17