A basic python program to log into the UoE MyEd page.
- Selenium:
pip3 install -U selenium
- Webdriver_manager:
pip3 install -U webdriver_manager
- Keyring:
pip3 install -U keyring
- Pyinstaller (Optional):
pip3 install -U pyinstaller
Note: Pyinstaller must be added to the PATH system environment variable
Clone the repo
git clone https://github.com/H00pyFr00d/edinburgh-uni-learn-login.git
Now, create userinfo.txt
in the folder you've just created and store your username as follows:
s2000000
python3 /Users/.../edinburgh-uni-learn-login/main.py
Will prompt the user for their username if they have not already created the userinfo.txt
file, and their password if it hasn't already been provided
In your desktop, create an .exec
file:
#!/bin/sh
python3 /Users/.../edinburgh-uni-learn-login/main.py
exit 0
Then give it permission,
chmod +x /Users/.../open_learn.exec
-
When running the executable you might get an
operation not found
error, this could mean that your file's been quarantined. -
If your shell window stays open after the script's finished running, go to Terminal > Preferences > Profiles > Shell and change the default setting for when the shell exists from "don't close the window" to "close the window"
Install pyinstaller (as seen above)
Open a terminal instance and navigate to the edinburgh-uni-learn-login
folder
Run the following command:
pyinstaller main.py --onefile
Your executable will be placed in the folder you've run this command from