Uh oh!
There was an error while loading. Please reload this page.
WebAuth class fixed. New api used. Email/guard code auth added. - #454
WebAuth class fixed. New api used. Email/guard code auth added.#454artur1214 wants to merge 1 commit into
Conversation
TODO: QR code auth add. Added function to unlogin on every device. Code refactoring done: added docstrings, typehints. NOTE: Current version now don't work with python <=3.5
artur1214
commented
Oct 28, 2023
Revibess
commented
Oct 29, 2023
Hey, cant seem to get yours to work. Could you give a login example? |
Of course :) If you use steam guard:# AUTH VIA STEAM GUARD CODEauthenticator=SteamAuthenticator(json.load(open('path/to/mafile.mafile')))
auth=WebAuth('login', 'password')
session=auth.login(code=authenticator.get_code())
print(session.cookies)If you use email:# AUTH VIA EMAIL CODEauth=WebAuth('login', 'password')
code_provider_function=auth.login(email_required=True)
code=input('Please, enter your email code here: ')
session=code_provider_function(code)
print(session.cookies) |
cinsin
commented
Dec 1, 2023
Hi bro, I'm sorry but I simply can not get to work with the demo code using steam guard version.
kindly can you please help me with this issue, thanks in advance! |
/del Проблема решена. Это я звонил. но есть замечание File "c:\Users\BebraPC\Desktop\steam-py-lib\steam\webauth.py", line 219, in _startSessionWithCredentials при некорректных данных было бы лучше выдавать ошибку входа так же не понятно могу ли я использовать прокси (session.proxies) до установки входа в аккаунта а не после |
ChiHangChen
commented
Dec 27, 2023
Hi, do you have any example to get file |
same error with the email demo Maby make a fork bc this repo looks abandoned. |
VitorOriel
commented
Jan 10, 2024
yeah, this repo looks abandoned... :( |
artur1214
commented
Feb 2, 2024
lets start over. You receiving code in your email? And this code raises 2fa invalid error? Am I understood you right? |
cloudsucker
commented
Feb 6, 2024
Why are you using an old function when you added a new one in the update request? 0_o This code works fine for me and interacts well with Steam Guard. I'm not sure about how to handle the 'mafile' in the code. It seems like others are also unsure about it, so... P. S. Does anyone know if it's possible to save the session between code reloads? If so, how can I do it? |
FailSpy
commented
Mar 1, 2024
@maxfraid To address your postscript, you can have a look at my steam redeemer repo for more info on how to save cookies, but here's the key function: defexport_cookies(cookie_file, session):
try:
cookies=Noneiftype(session) isrequests.Session:
# handle Steam sessioncookies=session.cookiespickle.dump(cookies, open(cookie_file,"wb"))
returnTrueexcept:
returnFalse |
hi bro, could you give an example of code for generating a mafile, I’m just starting to understand this and would be very happy with any help |
TODO: QR code auth add.
Added function to unlogin on every device.
Code refactoring done: added docstrings, typehints. NOTE: Current version now don't work with python <=3.5