Probably going to let go of the protonmail idea
This commit is contained in:
parent
a0bf14ee66
commit
b4236c2da9
1 changed files with 18 additions and 0 deletions
|
@ -5,4 +5,22 @@
|
||||||
Author: flyingscorpio
|
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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue