Script changes Steam account password. It works only for accounts with Steam Guard
from steampassword.chpassword import SteamPasswordChange
from steampassword.steam import CustomSteam
from steampassword.utils import generate_password
async def main():
steam = CustomSteam(
login='login',
password='password',
shared_secret='shared_secret',
identity_secret='identity_secret',
device_id='device_id',
steamid=76560000000000000,
)
newpassword = generate_password()
await SteamPasswordChange(steam).change(newpassword)
MIT