Login
This property defines how the crawler can authenticate it self to protected websites. Currently only the playbook is supported our must versatile and flexible authentication option.
Last updated
This property defines how the crawler can authenticate it self to protected websites. Currently only the playbook is supported our must versatile and flexible authentication option.
Last updated
{
"login": {
"playbook": [
// Navigate to the login page
{
"type": "goto",
"url": "https://example.com/login"
},
// Type in the required fields
{
"type": "type",
"selector": "input[type='email']",
"value": "[email protected]",
},
{
"type": "type",
"selector": "input[type='password']",
"value": "Your_password",
},
// Submit form
{
"type":"click",
"selector": "input[type='submit']",
},
// Wait until form submit is completed
{
"type": "wait",
"action": "waitForNavigation"
}
]
},
}{
"login": {
"playbook": [
// Navigate to the login page
{
"type": "goto",
"url": "https://example.com/login"
},
// Type in the required fields
{
"type": "type",
"selector": "#username",
"value": "[email protected]"
},
{
"type": "type",
"selector": "#password",
"value": "Your_password"
},
{
"type": "click",
"selector": "#submitForm"
},
// Wait until form is submitted and TOTP field becomes visible
{
"type": "wait",
"action": "waitForSelector",
"selector": "#totpToken"
},
{
"type": "type",
"selector": "#totpToken",
"action": "generateTOTP",
"totp": {
"secret": "TOTP_SECRET",
"algorithm": "SHA-1"
}
},
{
"type": "click",
"selector": "button[type=\"submit\"]"
},
// Wait until form submit is completed
{
"type": "wait",
"action": "waitForNavigation"
}
]
}
}