Python script to extract all Humble keys and redeem them on Steam automagically.
This is primarily designed to be a set-it-and-forget-it tool that maximizes successful entry of keys into Steam, assuring that no Steam game goes unredeemed.
This script will login to both Humble and Steam, automating the whole process. It's not perfect as I made this mostly for my own personal case and couldn't test all possibilities so YMMV. Feel free to send submit an issue if you do bump into issues.
It will extract all keys available for Steam from Humble, and check if any of the keys are already owned by the logged-in Steam user. Of those that aren't, attempt to redeem them on Steam. This is done because Steam has some pretty harsh rate limiting on key redemption -- 50 keys/hr, or 10 failed keys/hr, whichever comes first.
To remove an already added account, delete the associated .(humble|steam)cookies
file.
Requires Python version 3.6 or above
steam
: ValvePython/steamfuzzywuzzy
: seatgeek/fuzzywuzzyrequests
: requestsrequests-futures
: requests-futurespython-Levenshtein
: ztane/python-Levenshtein OPTIONAL
Install the required dependencies with
pip install -r requirements.txt
If you want to install python-Levenshtein
:
pip install python-Levenshtein