This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
mandaye/mandaye/configs/vincennes.py

17 lines
599 B
Python

from mandaye.auth.authform import AuthForm
from mandaye.auth.vincennes import VincennesAuth
form_values = {
'form_action': '/sezhame/page/connexion-abonne',
'from_headers': { 'Content-Type': 'application/x-www-form-urlencoded' },
'form_values': { 'user': '',
'password': '',
'op': 'Se connecter',
'form_id': 'dk_opac15_login_form' },
'username_field': 'user',
'password_field': 'password'
}
auth_vincennes = VincennesAuth('https://test.vincennes.fr/comptecitoyen/auth')
authform = AuthForm(auth_vincennes, **form_values)