This commit is contained in:
Boyan 2024-02-12 13:04:41 +01:00
parent 0255c22b01
commit 22ea95cf13
5 changed files with 26 additions and 1 deletions

3
.gitignore vendored
View File

@ -1,3 +1,6 @@
# Config
config.py
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]

View File

@ -10,3 +10,7 @@ A python library which interacts with themis. Use selenium and bs4. I'll try to
## Possible continuations
* [ ] Discord bot
* [ ] CLI program
## Thanks to
* [Glitchcat](https://glitchcat.github.io/themis-api/), cool docs bro.
* [Mo](https://github.com/Stylo2k), damn bruh you actually work for Themis

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__

View File

@ -1,4 +1,4 @@
username = "<s-number>"
username = "s5230837"
password = "<password>"
if __name__ == "__main__":

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