mirror of
https://github.com/Code-For-Groningen/temmies.git
synced 2025-07-02 03:44:59 +02:00
added config
This commit is contained in:
8
src/Year.py
Normal file
8
src/Year.py
Normal 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
5
src/config.py
Normal 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
10
src/login.py
Normal 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
|
||||
|
Reference in New Issue
Block a user