问题标签 [w3m]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
3 回答
30835 浏览

javascript - 如何在 w3m 终端中使用 Javascript?

我发现文本浏览器 w3m 在我看来是迄今为止最好的。但是,主要问题是Javascript。

当我使用它时,我在 Stackoverflow 中根本看不到评论。

我不确定让 Javascript 进入终端有什么限制。

如何为终端启用至少一些 JavaScript 以使评论可见?

0 投票
1 回答
295 浏览

emacs - 如何在 emacs *w3m* 缓冲区中交换上/下箭头键行为和 Cn/Cp 行为

我试图找到一个快速的elisp 修复程序,使Emacs 下的w3m交换向上/向下箭头的默认行为(在加载页面中的超链接之间移动),与Cn/Cp(移动到页面中的下一行和上一行)。这些键绑定必须仅在焦点位于w3m缓冲区中时应用。

直观地说,这种配置对我来说会更好,因为我目前正在调整为cua 模式行为,特别是在执行快速移位选择复制/粘贴操作的情况下。

使用Cn/Cp在超链接之间移动将成为一个非常明确的操作,而到UP/DOWN的默认映射则毫无帮助;至少对我来说。

0 投票
1 回答
813 浏览

emacs - 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?

0 投票
1 回答
3174 浏览

bash - bash:查找 -exec 和文件名

我想从几百个文件中删除 HTML。

这是我开始使用的命令:

我遇到的问题是它创建了一个大的 .htm.out 文件(名为 {}.html.out)——我希望我使用的文件被命名为原始文件是 .out。

例如,我有

我想通过 w3m 运行它,得到 2002/filename.html.out

有什么建议么?我对不使用 bash 的其他解决方案持开放态度

我正在使用cygwin。

0 投票
2 回答
1057 浏览

emacs - 如何在 Emacs Lisp 函数中等待事件?

我正在尝试编写最简单的功能:向 w3m 浏览器发送查询,然后在网页上找到特定位置:

这里的问题是w3m-search不等到页面重新加载并set-window-start在旧页面上执行。然后页面重新加载并将光标放在缓冲区的开头。

(sleep-for ..)between w3m-searchand 有set-window-start帮助,但是由于加载时间是任意的,所以不是很方便。

我怎样才能重写这个函数,所以它会等到缓冲区重新加载,然后才做剩下的事情?

0 投票
1 回答
1416 浏览

osx-lion - 使用 brew 在 Lion 上安装 bdw-gc 失败

我在狮子上安装 w3m 和 brew。当我使用原始公式时,安装已归档。然后我关注自制软件的问题 7068 更新 bdw-gc.rb 公式脚本

并重新安装它,但它仍然失败。这是安装日志

...........

有什么建议吗?

0 投票
2 回答
2249 浏览

javascript - 抓取简单的javascript页面

我想抓取该网站(http://www.oddsportal.com/matches/soccer)的数据,以便以这种方式获取包含比赛信息和赔率信息的纯文本文件:

我曾经用 w3m 做到这一点,但现在似乎他们将 html 更改为 javascript 并且 w3m 不起作用。数据仅包含在一个 div 中。这是一个条目

我能做些什么?

0 投票
3 回答
5224 浏览

linux - 如何在 w3m 中设置用户代理

我正在使用w3m。我如何去覆盖这个基于文本的网络浏览器的用户代理?我曾尝试设置 -header "User-Agent: blah" 作为示例,但出现以下错误:

0 投票
1 回答
713 浏览

python - 使用 Emacs 错误配置 w3m

我正在尝试通过 emacs 23 配置和使用 w3m。我的系统上有 w3m,并且已经下载并制作/安装了 emacs-w3m 1.4.4。但是,当我将 (require 'w3m-load) 放入我的 .emacs 文件时,它会在 emacs 启动时引发错误:

我不确定我做错了什么。任何帮助,将不胜感激。

0 投票
2 回答
1218 浏览

linux - 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:

Next, I have to get all the sites from this page. I was thinking to take all the string that start with www. and ends with /

The problem with this is that I miss a lot of the links that don't start with www and at the same time I risk breaking everything when there is a site that doesn't end with /.

What better way could I get the urls from this response?