Create README; Set-Up Streamline

This commit is contained in:
2024-04-14 15:25:32 +02:00
parent 447800ad73
commit 1d30c07cdc
9 changed files with 68 additions and 34 deletions

View File

@ -22,7 +22,7 @@ async def checkUser(email: str, password: str):
Erhält von Dualis den Token und Cookie für User.
:param email:
:param password:
:return (Token, Session):
:return (Token, Cookie):
"""
async with httpx.AsyncClient() as s:
fpw = urllib.parse.quote(password, safe='', encoding=None, errors=None)
@ -53,7 +53,7 @@ async def getKurs(token: int, cookie: str):
try:
headers["Cookie"] = "cnsc=" + cookie
token = str(token)
async with httpx.AsyncClient as s:
async with httpx.AsyncClient() as s:
response = await s.get(url=f"{url}?APPNAME=CampusNet&PRGNAME=COURSERESULTS&ARGUMENTS=-N{token},-N000307,",
headers=headers)
html = BeautifulSoup(response.text, 'lxml')