Giter Club home page Giter Club logo

w3m's Introduction

Features

Based on w3m 0.5.3, add the following features:

  • support user defined user-agent
  • support load cookie from local file(not ~/.w3m/cookie), the format of the file is same as curl and wget (Netscape format)

License

GPL v2+

Example

w3m -cookie -load-cookies=./cookies.txt -user-agent='Mozilla/5.0 (X11; Linux i686; rv:30.0) Gecko/20100101 Firefox/30.0' 'https://mail.google.com'

Netscape format

The layout of Netscape’s cookies.txt file is such that each line contains one name-value pair.

An example cookies.txt file may have an entry that looks like this:

.netscape.com   TRUE   /   FALSE   946684799   NETSCAPE_ID   100103

Each line represents a single piece of stored information. A tab is inserted between each of the fields.

From left-to-right, here is what each field represents:

  • domain

    The domain that created AND that can read the variable.

  • flag

    A TRUE/FALSE value indicating if all machines within a given domain can access the variable. This value is set automatically by the browser, depending on the value you set for domain.

  • path

    The path within the domain that the variable is valid for.

  • secure

    A TRUE/FALSE value indicating if a secure connection with the domain is needed to access the variable.

  • expiration

    The UNIX time that the variable will expire on. UNIX time is defined as the number of seconds since Jan 1, 1970 00:00:00 GMT.

  • name

    The name of the variable.

  • value

    The value of the variable.

Referenced

Format of cookies when using wget

The Unofficial Cookie FAQ

Homebrew

Todo

use getopt to parse arguments

w3m's People

Contributors

kumakichi avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.