Skip to content

Commit

Permalink
update docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadrezaAmani committed Oct 14, 2023
1 parent 9435fdb commit 8266cce
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions autinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@


class AutInfo:
"""AUT Students information gatherer (idk this word has meaning or not)
Functions:
get: get a user
get_range: get a range of users
"""
URL = "https://samad.aut.ac.ir/index/index.rose"
URL_MESSAGES = "https://samad.aut.ac.ir/messaging/searchUsers.rose?q=%s"
URL_LOGIN = "https://samad.aut.ac.ir/j_security_check"
Expand Down Expand Up @@ -31,6 +37,11 @@ def password(self, value: str):
self._password = value

def login(self) -> bool:
"""login to `samad.aut.ac.ir`
Returns:
bool: login status
"""
login_page = self.session.get(self.URL)
csrf_token = csrf(login_page.text)
del login_page
Expand Down

0 comments on commit 8266cce

Please sign in to comment.