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.
40
questions
1
vote
1
answer
36
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 ...
1
vote
1
answer
36
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 ...
1
vote
0
answers
210
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 ...
0
votes
1
answer
105
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 ...
6
votes
3
answers
451
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?
0
votes
1
answer
658
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(...
2
votes
0
answers
140
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 ...
0
votes
1
answer
71
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 ...
1
vote
1
answer
89
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. ...
0
votes
2
answers
4k
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.
1
vote
1
answer
593
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 (...
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 ...
3
votes
1
answer
680
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: ...
4
votes
2
answers
6k
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 ...
0
votes
2
answers
74
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 ...
0
votes
2
answers
65
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, ...
0
votes
2
answers
265
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 ...
-1
votes
1
answer
111
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....
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 -...
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...
...
1
vote
2
answers
362
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 ...
1
vote
0
answers
805
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 ...
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, ...
1
vote
2
answers
657
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><...
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 ...
3
votes
1
answer
9k
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!
1
vote
1
answer
374
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 "...
1
vote
0
answers
394
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 ...
0
votes
1
answer
726
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 ...
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-...
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
...
1
vote
1
answer
721
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 ...
4
votes
3
answers
5k
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 ...
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 - ...
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 ...
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 "...
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 ...
3
votes
1
answer
815
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?
1
vote
1
answer
296
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 ...
10
votes
3
answers
32k
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 ...