WSDG is a simple local Python script to automatically grab supply drops (weekly, activity, level up) for your account.
The goal is to with an easy one-time setup never again miss a supply drop.
Currently activity drop not working due to API change Currently level-up drop not working due to API change
Run-time | Logs |
---|---|
-
Clone repository:
git clone https://github.com/Adilius/WSDG.git
-
Change directory to repository:
cd WSDG/
-
Install required packages:
pip install -r .\requirements.txt
-
Run script:
python .\wsdg.py
Command Line Option | Description |
---|---|
-h --help | Show help message and exit |
-e email | Email used to login |
-p password | Password used to login |
-s | Save and encrypt login credentials for future use. |
-l log_level | Log level options: [DEBUGV, DEBUG, INFO, WARNING, ERROR, CRITICAL] DEBUG and below level logs will only be printed in console. DEBUGV also prints username, password, and userid. |
Enviroment file stores enviroment variables which can be used for convenience to not input email and password for each run.
The data is stored in .env
file encrypted using simple Vigenère cipher using hardware adress as key. The encryption is used to store your credentials in ciphertext to stop onlookers. However it is still not safe storage, if your system is compromised the credentials can be extracted with some effort.
To setup scheduled task in linux simply use crontab jobs.
To edit cronjobs: crontab -e
Change paths as needed.
00 05 * * * cd /path/to/WSDG && /usr/bin/python3 wsdg.py
Copy paste to notepad.
Edit paths in $action.
Execute should path to either your global Python or to the virtual enviroment Python you use for the project.
Argument should path to wsdg.py file.
$action = New-ScheduledTaskAction -Execute "path\to\python.exe" -Argument "path\to\WSDG\wsdg.py"
$trigger = New-ScheduledTaskTrigger -Daily -At 5:00am
$trigger.StartBoundary = [DateTime]::Parse($trigger.StartBoundary).ToLocalTime().ToString("s")
$settings = New-ScheduledTaskSettingsSet -ExecutionTimeLimit 0
Register-ScheduledTask -Action $action -Trigger $trigger -Settings $settings -TaskName "AdiliusWSDG" -Description "Run WSDG script daily"
If you experiance any problems running the script, make an issue.
If you want to contribute, make a pull request.
Acknowledgement to mirague with their webhallen-supply-drop repository which sparked the idea for this python project.