added config

This commit is contained in:
2024-02-12 13:05:52 +01:00
parent 9dbdc75ad9
commit 049ef0ea7f
7 changed files with 876 additions and 0 deletions

8
src/Year.py Normal file
View File

@ -0,0 +1,8 @@
from bs4 import BeautifulSoup
import selenium
# Class to represent an academic year
#
class Year:
def __init__

5
src/config.py Normal file
View File

@ -0,0 +1,5 @@
username = "<s-number>"
password = "<password>"
if __name__ == "__main__":
print("Do not run this module like this. Just set the values.")

10
src/login.py Normal file
View File

@ -0,0 +1,10 @@
# Module to handle login
# URL to login: https://themis.housing.rug.nl/log/in
# POST request which contains the following data:
# - username
# - password
# - null
from requests import post
from bs4 import BeautifulSoup