ValvePython / steam

☁️ Python package for interacting with Steam
http://steam.readthedocs.io
MIT License
1.05k stars 127 forks source link

[BUG] Session doesn't work after Steam update #450

Open PyDevelopp opened 8 months ago

PyDevelopp commented 8 months ago

In the latest Steam update, sessions stopped working, how to solve the problem?

negstek commented 8 months ago

same kind of pb here, since today simple code like this does not work anymore and raise 400 bad request exception

user = wa.WebAuth(STEAM_BOT_NAME)
steam_session = user.login(STEAM_BOT_PASSWORD)
steam_session.get("https://steamcommunity.com/market/pricehistory/?country=US&currency=1&appid=730&market_hash_name=AK-47 | The Empress (Factory New)")

I don't know if it can help but acceed in browser to the URL worked when connected but CURL from this page fails in POSTMAN Maybe a header issue

ZangYUzhang commented 8 months ago

SOS~~ Has anyone implemented a new Steam login to get request.session or cookies?

ZangYUzhang commented 8 months ago

Valve completely killed session mechanism that ASF used,Anxiously waiting for updates。

here is the issues of other steam project。

emipa606 commented 8 months ago

Started yesterday with the steamLoginSecure no longer appearing in the cookie. Today it cannot login at all. Had a look at the solution posted Here but failed to apply it to this project

SamanHushi commented 8 months ago

There's also a problem with the login. It detects whether the password is wrong or not but throws a KeyError: 'transfer_parameters' when the password is correct.

File "/.../steam/webauth.py", line 153, in _finalize_login
    self.steam_id = SteamID(login_response['transfer_parameters']['steamid'])
KeyError: 'transfer_parameters' 
user = WebAuth(username)
try:
    user.login(password=password)
    print("Login successful!")
except Exception as e:
    print(f"Login failed: {e}")

with the correct credentials leads to

Login failed: 'transfer_parameters'