Automatically renew your BC Translink Upass every month by scheduling this script on your computer, and never have an awkward moment again while tapping your card on the bus.
Currently compatible with UBC and SFU authentication portals.
Clone the project:
git clone git@github.com:<your_github_username>/upass_renewer.git
- Python 3.5+
- Google Chrome
Use pip install to get other requirements:
pip install -r requirements.txt
Enter your university name and authentication details into the config.yml file. Currently Upass Renewer only supports UBC and SFU authentication portals.
For security reasons, please keep your config file in a safe location and never share it. Here's an example:
university: "University of British Columbia"
username: johnsmith
password: 0Tw22dzp0D
Run the script from your command line to check if it works. If your Upass is not available to renew, the script will simply halt after authentication.
python main.py
There are several ways to do this, and can vary depening on your OS. Here are some helpful tutorials:
- Shoutout to Pvakil, whose code I based this project on