Skip to content
/ WSDG Public

🤖Automatically grab Webhallen supply drops using simple HTTP requests

License

Notifications You must be signed in to change notification settings

Adilius/WSDG

Repository files navigation

large_2

Webhallen Supply Drop Grabber!

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

Python version

Run-time Logs
RUNTIME LOGS

Quick start

  1. Clone repository: git clone https://github.com/Adilius/WSDG.git

  2. Change directory to repository: cd WSDG/

  3. Install required packages: pip install -r .\requirements.txt

  4. Run script: python .\wsdg.py

Command Line Arguments

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

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.

Setting up scheduled task

Linux

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

Windows

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"

Contributing

If you experiance any problems running the script, make an issue.
If you want to contribute, make a pull request.

Acknowledgment

Acknowledgement to mirague with their webhallen-supply-drop repository which sparked the idea for this python project.

About

🤖Automatically grab Webhallen supply drops using simple HTTP requests

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages