wiki:Plugins/formlogin
Last modified 20 months ago Last modified on 10/03/11 01:23:09

Form Login

Log in to a site using a webform

This plugin requires the mechanize library. To install it, run:

easy_install mechanize

Example

form:
  url: http://example.com/login.php
  username: <username>
  password: <password>

Example 2

The login module just performs the login, you need to use other plugins to process content from the site:

form:
  url: http://example.com/login.php
  username: <username>
  password: <password>
html:
  url: http://example.com/browse.php?cat=1
regexp:
  accept:
    - Paddy.Obrien

Options

All options except for the API key are optional

Options

NameDescription
formURL to the login form
usernameUsername to the site
passwordPassword
userfieldName of the username field if not 'username'
passfieldName of the password field if not 'password'