mirror of
https://github.com/Code-For-Groningen/temmies.git
synced 2025-03-15 15:10:15 +01:00
lol
This commit is contained in:
parent
0255c22b01
commit
22ea95cf13
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +1,6 @@
|
|||||||
|
# Config
|
||||||
|
config.py
|
||||||
|
|
||||||
# Byte-compiled / optimized / DLL files
|
# Byte-compiled / optimized / DLL files
|
||||||
__pycache__/
|
__pycache__/
|
||||||
*.py[cod]
|
*.py[cod]
|
||||||
|
@ -10,3 +10,7 @@ A python library which interacts with themis. Use selenium and bs4. I'll try to
|
|||||||
## Possible continuations
|
## Possible continuations
|
||||||
* [ ] Discord bot
|
* [ ] Discord bot
|
||||||
* [ ] CLI program
|
* [ ] 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
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__
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
username = "<s-number>"
|
username = "s5230837"
|
||||||
password = "<password>"
|
password = "<password>"
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
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
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user