This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
magnet:?xt=urn:btih:0595273ab674e05131a757f69f494a4285b429aa&dn=Facebook%20Leak%20%5B2019%5D%5B533M%20Records%5D%5B106%20Countries%5D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function authenticate(login, password) { | |
return signin({ | |
url: `${baseUrl}/accounts/login/`, | |
formSelector: 'form.new-form', | |
formData: { login, password }, | |
// the validate function will check if | |
validate: (statusCode, $) => { | |
// The login in toscrape.com always works excepted when no password is set | |
if ($(`a[href='/logout']`).length === 1) { | |
return true |