title | description | published | date | tags | editor | dateCreated |
---|---|---|---|---|---|---|
formlogin |
true |
2022-09-18 05:05:23 UTC |
markdown |
2022-09-18 05:05:21 UTC |
Log in to a site using a webform
This plugin requires the mechanicalsoup library. To install it, run:
$ pip install mechanicalsoup
form:
url: http://example.com/login.php
username: <username>
password: <password>
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
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' |