1 2 3 4 5 6 7 8 9 10 11 12 13
| $python Python 3.8.2 (default, Apr 16 2020, 18:36:10) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from loginform import fill_login_form >>> import requests >>> url = "https://github.com/login" >>> r = requests.get(url) >>> fill_login_form(url, r.text, "john", "secret") ( [('authenticity_token', 'R+A63AyXCpZLBzIdp6LefjsRxmkhLqsxaUPp+DLru2BlQlyID+B7yXL3FoNgoBgjF3osG3ZSyjBFriX6TsrsFg=='), ('login', 'john'), ('password', 'secret'), ('webauthn-support', 'unknown'), ('webauthn-iuvpaa-support', 'unknown'), ('timestamp', '1588766233339'), ('timestamp_secret', '115d1a1e733276fa256131e12acb6c1974912ba3923dddd3ade33ba6717b3dcd'), ('commit', 'Sign in')], 'https://github.com/session', 'POST')
|