w3m

使用命令行浏览器在 Linux 终端上网浏览

流过昼夜 提交于 2020-11-23 07:38:18
我猜你阅读这篇文章可能是用 Firefox 或基于 Chrome 的浏览器(如 Brave ),或者,也可能是 Chrome 浏览器或 Chromium 。 换句话说,你正在利用基于 GUI 的方式浏览网页。然而,在以前,人们使用终端来获取资源和浏览网页,因为所有的东西大多是基于文本的。 虽然现在不能从终端上获取每个信息,但对于一些文本信息,还是可以尝试使用命令行浏览器,从 Linux 终端上打开网页。 不仅如此,如果你访问的是远程服务器,或者只有一个没有 GUI 的终端,终端网页浏览器就可以发挥用处了。 因此,在本文中,我将介绍一些基于终端的 Web 浏览器,你可以在 Linux 上尝试它们。 Linux 用户的最佳终端 Web 浏览器 注:此榜单排名不分先后。 1、W3M w3m 是一个流行的基于文本的开源终端 Web 浏览器。尽管其初始项目已经不再活跃,但另一个开发者 Tatsuya Kinoshita 正在维护着它的一个活跃分支。 w3m 相当简单,支持 SSL 连接、色彩,也支持内嵌图片。当然,根据你试图访问的资源,你那边的情况可能会有所不同。根据我的简单测试,它似乎无法加载 DuckDuckGo ,但我可以 在终端中使用 Google 就够了。 安装后,你可以简单的在终端中输入 w3m 以得到帮助。如果你感兴趣的话,也可以到 GitHub 上去查看它的仓库。

Linux下安装tomcat9,傻瓜式安装

独自空忆成欢 提交于 2020-08-18 11:40:17
说明:安装路径可以自行修改;本文适合小白傻瓜式安装。 一、下载tomcat9 1.1 官网下载 Tomcat官网下载对应版本的tar.gz文件,然后上传到linux服务器。 1.2 wget下载 地址不能使用的话自己重新找个地址。 wget http://mirrors.cnnic.cn/apache/tomcat/tomcat-9/v9.0.0.M9/bin/apache-tomcat-9.0.0.M9.tar.gz 二、解压 用tar命令解压后,会生成apache-tomcat-9.0.0.M9目录; 把apache-tomcat-9.0.0.M9移动到/usr/local目录下 tar -zxvf apache-tomcat -9.0 .27 .tar.gz mv apache-tomcat -9.0 .27 /usr/ local 三、Tomcat服务相关 1、进入解压目录的bin文件夹,运行命令./startup.sh ./startup.sh 会自动输出下面内容: Using CATALINA_BASE: /usr/ local/apache-tomcat -9.0 .27 Using CATALINA_HOME: /usr/ local/apache-tomcat -9.0 .27 Using CATALINA_TMPDIR: /usr/ local /apache

终端命令行之Web浏览器

牧云@^-^@ 提交于 2020-08-14 18:22:24
  Linux命令行是强大的工具,命令行是我们的日常工作,命令行更是我们日常生活。之前虫虫给大家写过一些命令的的介绍,命令行的工具,命令行下的开发。实际上命令行也是我们不可或缺的生活。本文我们来介绍一下命令行下的网络冲浪工具命令行浏览器。   lynx   lynx一个历史悠久纯文本web浏览器,最初发布可能是上世纪90年代的1997年。lynx采用C语言编写,以GGPLv2协议发布,目前最新版本为2.8.9,而且还在积极更新中开发版本为2.9.0。lynx是一款扩平台的浏览器,可以运行在Un*x系, MacOS, VMS, Windows 95/98/NT/32, DOS386+ (but not 3.1, 3.11), 以及OS/2 EMX等,是一个可高度配置的web浏览器。   lynx安装很简单,直接用发行版的包管理器安装,比如CentOS下可以用   yum install lynx   安装   lynx的使用用方法:   lynx 网站URL   lynx更多选项可以按h获取帮助说明。   地址:lynx.invisible-island.net   links   Links由twibright Lab推出的以GPL开源的web浏览器,支持文本模式和图形页模式。Links支持跨平台,可以在Linux、Windows、OS X和OS/2等主流操作系统下使用

Link extraction from a google page in bash

拈花ヽ惹草 提交于 2019-12-22 18:19:52
问题 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 echo "$word missing!" echo "Aborting..." exit fi a="www.google.com/search?q=" search=$a$word w3m -no-cookie $search > .google sleep 1 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 /

How can you use Javascript in terminal for w3m?

旧城冷巷雨未停 提交于 2019-12-21 04:09:15
问题 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 restriction in letting Javascript to be in terminal. How can you enable at least some of JavaScript for Terminal such that comments are visible? 回答1: Javascript requires a Javascript interpreter. If your user-agent doesn't understand a particular kind of scripting, it simply ignores it. To get a

Display contents of remote HTML in Emacs

有些话、适合烂在心里 提交于 2019-12-18 03:43:25
问题 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 display remote HTML in Emacs possibly preliminary filtered in the way it is done by Readability/GetPocket etc. services? I do not need a navigation there so cleared contents would be perfect. Thanks, 回答1: trunk / Emacs 24.4: M-x eww RET (URL) RET Emacs 24.1 - 24.3: M-x browse-url-emacs RET (URL) RET M

Display contents of remote HTML in Emacs

主宰稳场 提交于 2019-12-18 03:43:20
问题 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 display remote HTML in Emacs possibly preliminary filtered in the way it is done by Readability/GetPocket etc. services? I do not need a navigation there so cleared contents would be perfect. Thanks, 回答1: trunk / Emacs 24.4: M-x eww RET (URL) RET Emacs 24.1 - 24.3: M-x browse-url-emacs RET (URL) RET M

How can you use Javascript in terminal for w3m?

风格不统一 提交于 2019-12-03 12:34:16
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 restriction in letting Javascript to be in terminal. How can you enable at least some of JavaScript for Terminal such that comments are visible? Javascript requires a Javascript interpreter. If your user-agent doesn't understand a particular kind of scripting, it simply ignores it. To get a minimal level of support, try the w3m-js extension. Unfortunately w3m doesn't support JavaScript at all. Try

bash: find -exec and filenames

自古美人都是妖i 提交于 2019-11-28 07:39:19
问题 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 single large .htm.out file (named {}.html.out) -- I want the file I'm using to be named whatever it's original is .out. For instance, I have 2002/filename.html I want to run it through w3m, and get 2002/filename.html.out Any suggestions? I'm open to other solutions that don't use bash I'm using cygwin. 回答1