Site Map - skip to main content - dyslexic font - mobile - text - print

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes Monday through Friday.


hpr1848 :: Introduction to w3m, a Command Line Web Browser

A brief introduction to using w3m, a command line web browser with tab and image support.

<< First, < Previous, Latest >>

Host Image
Hosted by Frank Bell on 2015-09-02 is flagged as Explicit and is released under a CC-BY-SA license.
Listen in ogg, spx, or mp3 format. | Comments (2)

W3M is a text browser with image and tab support which supports both keyboard and mouse navigation. (Image support is not available in some terminals, but does work in Xterm and rxvt, but images may be opened in a external viewer)). Mouse and keyboard navigation are supported, but I recommend learning the keybindings. Keybindings are case sensitive.

The manual is 12 pages long and quite exhaustive. Here are some useful keybindings to get started with.

  • Open new tab: SHIFT-T
  • Close tab: CTRL-Q

  • Open URL: U (opens text dialog at bottom of window)
  • See URL of current page: u (displays current URL at bottom of window)
  • Close tab: CTRL Q

  • Go left one tab: {
  • Go right one tab: }

  • Back in the same page: b

  • Page Up: - (hyphen) or PG UP
  • Page Down: SPACE or PG DOWN

  • Previous page ("Buffer"): B
  • There is no "forward" button, but you can use view History: CTRL-h

  • Search in page: / (opens search dialog at bottom of window)

  • Help: H

  • Add bookmark: ESC-a
  • View bookmarks: ESC-v

  • Run shell command: # (Opens a dialog at the bottom of the window. Exit with B.)

  • Paste into dialogs (e. g., passwords): Middle mouse button.

  • Scroll left: . (period)
  • Scroll right: , (comma)


Comments

Subscribe to the comments RSS feed.

Comment #1 posted on 2015-10-01T20:00:12Z by tom_len

automatize login from command line

Hi, I just discovered this tool, w3m, and I was wondering if it could be possible to access to a page that requires login and password. i need it to be done automatically from commandline (i.e I wouldnt be pressing any keys, it's a headless server). Do you know if that's possible? I would need to grab some text, but once logged in (the url once in remains the same: https://www.paket.de/pkp/appmanager/pkp/desktop?_nfpb=true&_pageLabel=pkp_portal_page_start). Thanks in advance

Comment #2 posted on 2015-10-27T19:34:17Z by Frank

According to the man page, you can automatically log into a proxy. Perhaps you can bend that to your will. See the "-pauth" argument in the man page. I'm skeptical that it will do what you wish, but it's worth a shot.

Leave Comment

Powered by Comment Script