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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

How to construct a patch if I already know the diff?

I'm looking to build this project with patches against a current build on my machine using NixOS: https://github.com/spcmd/w3m As the project notes, it contains diff files if anyone outside of the ...
user1991892's user avatar
2 votes
1 answer
345 views

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 ...
Shiping's user avatar
  • 1,225
1 vote
1 answer
93 views

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 ...
gerardg's user avatar
  • 199
1 vote
1 answer
47 views

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 ...
LedLincoln's user avatar
2 votes
0 answers
529 views

w3m: fake JavaScript and user-agent

I use w3m to search words in the Spanish dictionary (dle.rae.es), so I'm using a bash script with this line: w3m "https://dle.rae.es/$1" The filename of the script is defes. For example, to ...
Unix's user avatar
  • 1,732
0 votes
1 answer
344 views

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 ...
bitDaft's user avatar
  • 177
6 votes
4 answers
948 views

How can I disable the exit confirmation while trying to quit w3m?

Is there a way to remove Do you want to exit w3m? (y/n) from prompting after I press q to exit the application?
Eric Yun's user avatar
0 votes
1 answer
1k views

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(...
Maruf's user avatar
  • 1
2 votes
0 answers
159 views

Does w3m access image links?

To display text/html e-mail in mutt, I'm using w3m. Following the EFAIL announce, I am wondering if w3m is accessing the <img> tags when it render a page (not to display the image, but maybe for ...
Vinz's user avatar
  • 5,997
0 votes
1 answer
105 views

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 ...
Laiun Cristian Ezequiel's user avatar
1 vote
1 answer
177 views

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. ...
uwe's user avatar
  • 19
0 votes
2 answers
6k views

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's user avatar
  • 1,158
1 vote
1 answer
911 views

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 (...
Frick Steves's user avatar
5 votes
1 answer
1k views

Dumping html source using w3m gives unexpected characters/symbols

As a new user of w3m I am trying to do something basic like: w3m -dump_source nytimes.com > nytimes.html The output produced gives crazy characters and symbols. However, when I browse using w3m ...
user1311034's user avatar
3 votes
1 answer
839 views

Jupyter opening up in w3c?

I've installed Jupyter via pip on the windows/ubuntu subsystem. Everything seems to be going well, however, when I try running Jupyter, it opens up the page in the w3m browser. Here is a screenshot: ...
Arya's user avatar
  • 1,402
4 votes
2 answers
7k views

Why is bash (WSL) using w3m as it's default browser?

Bash on Ubuntu on Windows 10 is using w3m to open URLs inside the terminal instead of opening Chrome or Edge. How can I get it to launch the Windows default web browser? For example, the following ...
theNathanielWatkins's user avatar
0 votes
2 answers
80 views

Horizontal Navigation In Text Based Browsers

In the old days of table based layouts it was relatively simple to make a horizontal nav bar that rendered horizontally in both graphical and text based browsers. Now the standard way of making a ...
jcmiller11's user avatar
  • 1,221
0 votes
2 answers
80 views

Bulk website query using text based browsers

I want a text browser like lynx,w3m or links to perform a bulk query from a list of available links. The results will be filtered for a key word and should be added to the original list. An example, ...
smartmic's user avatar
  • 660
0 votes
2 answers
317 views

Bash script: Store w3m dump into variable

How to store w3m dump result into a variable in a bash script? The result I got by w3m dump is C: randomIP randomPORT randomUSERNAME randomPASSWORD I want to cut "C:" and store everything else ...
Albert Karlsson's user avatar
-1 votes
1 answer
482 views

How to download a http file in unix that required login befor downloading?

I would like to download file from a website that required login prior to downloading. I tried w3p and I can open it but I don't how how to download it. What I tried is: w3m https://services....
TCFP HCDG's user avatar
3 votes
2 answers
3k views

Get the source code of website using lynx

As I can access the source code with lynx, w3m, links, etc. protected with a form. lynx -source -auth=user:pass domain.com lynx -source -accept_all_cookies -auth=user:pass domain.com lynx -...
user1847844's user avatar
2 votes
0 answers
4k views

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... ...
Reed Williams's user avatar
1 vote
2 answers
529 views

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 ...
Aniruddha's user avatar
  • 3,177
1 vote
0 answers
857 views

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 ...
Bart's user avatar
  • 123
1 vote
2 answers
2k views

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, ...
Josan's user avatar
  • 702
1 vote
2 answers
710 views

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 <body>....content....</body>. I want to ignore all the other headers (ex. <a></a>, <div><...
CrudeCoder's user avatar
6 votes
1 answer
2k views

Display contents of remote HTML in Emacs

I am aware about w3m integration with Emacs but I am exhausted to make it run on my W7/x64: there is a permanent segmentation fault of w3m binary here. I wonder if there is an alternative way to ...
zweibaranov's user avatar
3 votes
1 answer
10k views

w3m: Can't load http://localhost:8080

I get this message when i try to running jenkins (localhost:8080) on a debian server. Do you have any idea about what's wrong ? Thanks!
BaderTech's user avatar
1 vote
1 answer
426 views

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 "...
savior's user avatar
  • 812
1 vote
0 answers
405 views

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 ...
sw1nn's user avatar
  • 7,298
0 votes
1 answer
740 views

Emacs (24) loads and runs emacs-w3m, but doesn't use it for Lisp HyperSpec

I'm running an Emacs 24 + SLIME set up currently and am trying to get the Common Lisp HyperSpec to display in Emacs via emacs-w3m. Presently, if I enter into the mini-buffer M-x w3m it does indeed ...
Juser1167589's user avatar
0 votes
2 answers
2k views

How can I open the link use the external default browser after loading the w3m?

After loading the w3m package, all the links are opened with the w3m now. It is fine. But how can I open it with the default external browser, like Firefox, in Windows? The browse-url-browser-...
James.Y's user avatar
  • 1,427
2 votes
2 answers
1k views

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 ...
Epilogue's user avatar
1 vote
1 answer
767 views

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 ...
forTruce's user avatar
  • 839
4 votes
3 answers
6k views

How to set user agent in w3m

I'm using w3m. How do I go about overriding the user agent of this text based web browser? I have tried setting -header "User-Agent: blah" as an example, but I get the following error: w3m: Can't ...
Hengjie's user avatar
  • 4,598
0 votes
2 answers
2k views

Scraping simple javascript page

I would like to scrape the data of this web site ( http://www.oddsportal.com/matches/soccer ) in order to get a plain text file with the match info and the odds info in this way: 00:30 Criciuma - ...
emanuele's user avatar
  • 2,519
1 vote
1 answer
1k views

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 ...
luozengbin's user avatar
7 votes
2 answers
1k views

How to wait for an event in Emacs Lisp function?

I'm trying to write the simplest function: send a query to w3m browser and then find a particular place on the webpage: (defun w3m-define-word (word) (interactive "sDefine: ") (progn (w3m-search "...
Anton Tarasenko's user avatar
7 votes
1 answer
3k views

bash: find -exec and filenames

I want to strip the HTML out of few hundred files. Here's the command I've started with: find -name *.html -exec w3m {} > w3m {}.html.out \; The problem I've run into is that it created one ...
ahill's user avatar
  • 1,808
3 votes
1 answer
882 views

Emacs w3m export highlighted area as text

How can I copy text from emacs-w3m when the content is placed in a table? Currently, it copies the table-formatting and boundaries as well. Is there a export as text for w3m?
Kabira  K's user avatar
  • 1,945
1 vote
1 answer
310 views

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 ...
codeasone's user avatar
  • 1,953
11 votes
3 answers
36k views

How can you use Javascript in terminal for w3m?

I found the text browser w3m which is the best so far in my opinion. However, it is main problem is Javascript. I cannot see comments at all in Stackoverflow when I use it. I am not sure what is the ...
Léo Léopold Hertz 준영's user avatar