Skip to content

Latest commit

 

History

History
52 lines (44 loc) · 1.02 KB

formlogin.md

File metadata and controls

52 lines (44 loc) · 1.02 KB
title description published date tags editor dateCreated
formlogin
true
2022-09-18 05:05:23 UTC
markdown
2022-09-18 05:05:21 UTC

Form Login

Log in to a site using a webform

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

$ pip install mechanicalsoup

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

Name Description
form URL to the login form
username Username to the site
password Password
userfield Name of the username field if not 'username'
passfield Name of the password field if not 'password'