From b4236c2da9d16b6fb1d16569ac2df5e9d05e81aa Mon Sep 17 00:00:00 2001 From: "flyingscorpio@arch-desktop" Date: Sat, 2 May 2020 10:19:35 +0200 Subject: [PATCH] Probably going to let go of the protonmail idea --- dotfiles/i3/scripts/protonmail | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/dotfiles/i3/scripts/protonmail b/dotfiles/i3/scripts/protonmail index b9d7bb3..b61d6d3 100755 --- a/dotfiles/i3/scripts/protonmail +++ b/dotfiles/i3/scripts/protonmail @@ -5,4 +5,22 @@ Author: flyingscorpio """ +import argparse +import requests + +def parse_cli() -> argparse.Namespace: + """Parse credentials from the command line.""" + + +with requests.Session() as session: + req = session.post( + "https://mail.protonmail.com/api/auth", + data={ + "Username": "tfranken@protonmail.com", + }, + headers={ + "x-pm-appversion": "Web_3.16.23", + }, + ) + print(req.text)